-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(validation): fix evaluating requiredness from branch forms
This commit fixes the form validation. Given a structure like this: f:topform q:formquestionbranch - hidden=false f:subformbranch q:depquestion2 - required = 'subquestion2'|answer=='bluh' q:formquestion - hidden=variable f:subform q:subquestion1 - hidden=false q:subquestion2 - hidden=false q:depquestion1 - required = 'subquestion1'|answer=='blah' d:topdoc f=topform a:subanswer1 q=subquestion1, value='blah' a:subanswer2 q=subquestion2, value='bluh' The requiredness of `depquestion2` was wrongly evaluated to `True`, because it couldn't reach `formquestion` and everything below. This commit fixes the validation, so it can reach all forms in the document.
- Loading branch information
1 parent
d186c27
commit 062e350
Showing
2 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters