Replies: 4 comments
-
The required makes sense, but not if you're using a radio / dropdown select, it's meant for "you have to choose yes" type of situations. So, when you're using a radio, you assume that choosing any value will result in a value that passes requirement, but boolean requirements are only passed if the "Yes" option is chosen. |
Beta Was this translation helpful? Give feedback.
-
I think we could feasibly show an additional option when dropdown/select are chosen for input, called "Allow either value for Required validation" or similar text. |
Beta Was this translation helpful? Give feedback.
-
This would only be an 'enhancement'; you choose the type of field and require a selection.
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
This was fixed in #5550 @jimtrue You tagged it as Documentation, still valid or can I close this? |
Beta Was this translation helpful? Give feedback.
-
commit 1e7dd94 (#1142) made it impossible to save a Required boolean field with the value false (the value must always be set to true).
How to reproduce:
Does "Required" make sense for a checkbox? Maybe the fix is to remove the "Required" option for boolean fields? But users might want to require the checkbox to be checked, for example when accepting a license agreement. For that case, the current implementation is good.
Possible workaround: Don't set fields of types boolean to Required in your pods. Maybe this should be the documented and recommended way.
Beta Was this translation helpful? Give feedback.
All reactions