Skip to content

🐛 [open-formulieren/open-forms#5435] skip validation for hidden selectboxes#2

Closed
annashamray wants to merge 1 commit into
maykin-4.13.12from
issue/selectboxes-hidden-validation
Closed

🐛 [open-formulieren/open-forms#5435] skip validation for hidden selectboxes#2
annashamray wants to merge 1 commit into
maykin-4.13.12from
issue/selectboxes-hidden-validation

Conversation

@annashamray
Copy link
Copy Markdown

@annashamray annashamray commented Sep 19, 2025

fixes open-formulieren/open-forms#5435

Explanation:

When selectboxes components is placed inside a hidden fieldset then it has properties conditionallyVisible = true but
visible = false.
In the SelectBoxes.checkComponentValidity method isValid method is called, which calls Validator.validate, which uses conditionallyVisible property. Therefore we have invisible but invalid component.
The validation should be skipped in this case, so shouldSkipValidation is added before isValid

@annashamray
Copy link
Copy Markdown
Author

It will be fixed in open-forms-sdk repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

min/max Selectboxes hidden by a fieldset break navigating to next step

1 participant