Tengo una pregunta de selección multiple sin embargo quiero restringir que no se pueden seleccionar dos respuestas en particular porque se contradicen. Ejemplo.
La pregunta es: Seleccione la población atendida:
Opciones de respuesta: 1. Profesores, 2. Autoridades, 3. Médicos y 4. Estudiantes
Al momento de recolectar los datos es posible que se seleccione: la opción 1 y 2 o 2 y 3 o las opciones 1, 2 y 3 Pero quiero restringir que el momento que se selecione la opción “4 Estudiantes” no pueda seleccionarse la opción 2" Autoridades"
Hi @rfabara , welcome to the community!
Here is a wonderful article about how you can do that: Limiting Responses with Validation Criteria — KoboToolbox documentation
Basically you just need to add a constraint
for those two options to be selected at the same time.
If you need further help, don’t hesitate to ask.
Best,
1 Like
@rfabara , you should be able to do this as outlined in our previous post:
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…
This one too …
In this case, try this out:
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 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]
Reference xlsform:
Constraint.xlsx (11.4 KB)
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!
1 Like
Hi @hakan_cetinkaya and @Kal_Lam I really appreciate your help. It was so helpful Thank you a lot
2 Likes