Form design logic question

This constraint on the AGE is saying that if you select the HEAD "(selected(${Q102}, '1')" then
the age must be greater than 18.
For
2 Wife Or Husband
3 Son Or Daughter
4 Son-In-Law/ Daughter-In-Law
5 Grandchild
6 Parent
7 Parent-In-Law
8 Brother Or Sister
9 Brother-In-Law/ Sister-In-Law
10 Niece Or Nephew
11 Other Relative
12 Adopted/ Foster /Step Child
13 Domestic Servant
it only checks that age is >=1.
If you want for example that for the choice Wife or Husband the age should be mor ethan 18 than
"(selected(${Q102}, '2') and (. >=1))" should be changed to "(selected(${Q102}, '2') and (. >=18))" etc etc

Anil-Sample08-export.xlsx (18.8 KB)

Now it should work the question Q107 (Education)

1 Like