Then we need conditional attributes:
text:
type: text
required:
when:
toggle: true
when:
toggle: true
Or automatically unset the required attribute when condition is false.
Then we need conditional attributes:
text:
type: text
required:
when:
toggle: true
when:
toggle: true
Or automatically unset the required attribute when condition is false.