If this is the case, it’s more of a constraint
than using the cascading select
. Here are some previously discussed posts that should be helpful for you:
In this case, maybe you could do it as shown in the image shared below using this expressions in the constraint:
not(selected(., ‘c’) and (selected(.,’a’) or selected(.,’b’))) and not(selected(., ‘d’) and (selected(.,’a’) or selected(.,’b’)))
In the survey tab of your xlsform:
[Image 1]
In the choices tab of your xlsform:
[Image 2]
Data entry screen as seen in Enekto: when data is entered as expected
[Image 3]
Data entry screen as seen in Enekto: when data is not entered as expected
…
This one too …
You could do the same as outlined in the image below:
In the survey tab of your xlsform:
[Image 1]
In the choices tab of your xlsform:
[Image 2]
Data entry screen as seen in Enketo: (when a condition is met)
[Image 3]
Data entry screen as seen in Enketo: (when a condition is not met)
[Image 4]
Data entry screen as seen in Enketo: (when a condition is not met)
[Image 5]
Data entry screen as seen in Enketo: (when a condition is not met)
[Image 6]
Data entry screen as seen in Enketo…
And this one too …
Hi @sarbeswar ,
You could do it as outlined in the image shown below:
In the survey tab of your xlsform:
[Image 1]
Data entry screen as seen in Enketo: No error message seen when select-able choices are selected.
[Image 2]
Data entry screen as seen in Enketo: Error message seen when choices are selected beyond the select-able choices.
[Image 3]
Reference xlsform:
Constraint on Select_Multiple Question Type.xlsx (11.4 KB)
Have a great day!