You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just stumbled across the issue, that i would like to have a conditional field being required, when its condition is met, but not being required, when it condition is not met and therefor not visible.
For example:
I have a content Entry with a Dropdown in the beginning that sets a condition for that Entry.
The Dropdown has two options: Setting1 and Setting2
Then i have a field Color, which is only visible if Dropdown == Setting1.
Now it would be nice that Color field could be required.
But the issue is, that when i select Setting2, Cockpit throws an error when i try to safe the entry, since the required field Color is not set. Which is not possible, since it is not visible...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there,
I just stumbled across the issue, that i would like to have a conditional field being required, when its condition is met, but not being required, when it condition is not met and therefor not visible.
For example:
I have a content Entry with a Dropdown in the beginning that sets a condition for that Entry.
The Dropdown has two options: Setting1 and Setting2
Then i have a field Color, which is only visible if Dropdown == Setting1.
Now it would be nice that Color field could be required.
But the issue is, that when i select Setting2, Cockpit throws an error when i try to safe the entry, since the required field Color is not set. Which is not possible, since it is not visible...
Beta Was this translation helpful? Give feedback.
All reactions