added validateWhenHidden option that trigger validation of hidden/conditionally hidden components. The validation errors of hidden components are shown in the alerts on form submit.
How has this PR been tested?
Manually + added test
Checklist:
[x] I have completed the above PR template
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation (if applicable)
[x] My changes generate no new warnings
[x] My changes include tests that prove my fix is effective (or that my feature works as intended)
[x] New and existing unit/integration tests pass locally with my changes
[ ] Any dependent changes have corresponding PRs that are listed above
Link to Jira Ticket
https://formio.atlassian.net/browse/FIO-7774
Description
What changed?
added validateWhenHidden option that trigger validation of hidden/conditionally hidden components. The validation errors of hidden components are shown in the alerts on form submit.
How has this PR been tested?
Manually + added test
Checklist: