Form validation issue
See original GitHub issueScope: Condition and form validation
Description
I’ve encountered a problem with form validation when using condition isNotEmpty
.
I’ve got a form with three radio button options. The first two display a select list
, the third does not.
On selection of the first two options the form is only valid when the select list
is filled in. The third option should be always valid as there is nothing to be filled in.
When the select list
for the first two options is filled in, I would like to display an additional field.
For that I’m using isNotEmpty
condition:
condition: {
when: 'field-with-select-list',
isNotEmpty: true,
},
Problem
The form isn’t valid when the third option is selected, but when I select one of the two with select list
, fill it in and then select the third option, the form is suddenly valid.
Expected behavior When selecting the third option, the form is valid.
Screencap
Issue Analytics
- State:
- Created 9 months ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
@Hyperkid123 That did the trick, amazing! Thanks a lot!
@Hyperkid123 thank you! I’ll give it a try.