Hello,
I would like to be able to write a validation constraint on a multiple selection type question;
Example :
professional situation
To respond :
Student
Unemployed
worker
I would not like to be able to give the possibility of choosing in certain cases unemployed and working but the constraint to use does not accept the choices offered
Welcome back to the community, @sylvestresilasiloga ! Maybe this post discussed previously should solve your issue:
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 @anamikadutt ,
Would you mind trying out as outlined in the image below to control your none of the above response in a multiple choice question:
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 entered correctly
[Image 1]
Data entry screen as seen in Enketo: When entry error is made
[Image 2]
Reference xlsform:
Constraint.xlsx (12.6 KB)
Have a great day!
Thank you very much it works well
1 Like