Limiting Choice depending on an answer to the preceding question

Hi,

I am building this XLS form with some controls as follows;

Q1. What is your current status? (Select one)
a). Pregnant
b). Lactating
c) Mother of under 5
d) Caregiver

Q2. What services did you seek today at the health facility? (Select one)
a). Ante-Natal
b). Post-Natal
c). Other

If the respondent is pregnant, only Ante-Natal and Other are relevant. How do how put a control to ensure only relevant choices are feasible?

Alex.

Hi @AlexRutto77,

You could do the same as outlined in the image below:

In the survey tab of your xlsform:

In the choices tab of your xlsform:
Image 2

Data entry as seen in Enketo: Constant active when entering the data in a wrong way!

Data entry as seen in Enketo: * Constraint passive when entering the data in a correct way!*

Reference xlsform:
Constraint.xlsx (14.0 KB)

Have a great day!

1 Like

This worked very well. Thanks @Kal_Lam

2 Likes