Hi @Kal_Lam. I hope you are well. I have a similar challenge like the one I shared with you before. i tried applying the trick you shared with me but its seems this one is following a different logic. Basically, if I household head or member says they is a pregnant mother, or lactating mother or under2 or under5 or adolescent is when the next question becomes relevant for inputting a value. I tried the constraint ${household_status}=“pregrant” but only works for one option. If I select a second option e.g. lactating mother, everything is hidden. See the sample question attached.
You could do it as outlined in the image shared below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
In the settings tab of your xlsform:
Data entry screen as seen in Enketo:
Reference xlsform:
This worked perfectly worked as thought. Asante sana!
1 Like