Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Form Builder - required field are validated after being hidden #301
Hexagon version: 1.6.0
From form builder documentation for
I'd expect that if the property will be hidden and not included in the form data then it will not be validated. There is no simple way of removing 'required' attribute when hiding a field and setting default value would complicate the code.
When submitting a form with empty but required hidden field, the form is showing validation error for the field above the hidden field. Super confusing if a text field has error message "Please select a value from the list" because picker field below is hidden.
As expected, if the field is hidden after a value has been selected, then the form can be submitted and only the visible field is included in the form's data so that part works fine, only the validation is causing a problem.
I think the best way to deal with this would be to update the