Quick question: Multiple choices which skip questions

Hi all - I was wondering if someone could help me with a "skip issue" which isn't available on the ODK guidelines. This is a bit more complex issue than the simple pizza question that in the RELEVANCE section that is given as an example. The issue we are facing is trying to get MORE THAN ONE response in one field. More below.

  • The question in the survey is: 1). Are you a primary caregiver of a child less than 5 years old?”

  • And the answer choices are:

  1. Yes
  2. No
  3. Don’t know
  4. No answer / No response
  • Then the survey says: "If 1, go to question 2. If 2 or 98 or 99, go to question 3."

(I can’t figure out the code when I write on the relevance on question 3 with THREE CHOICES. I tried many things but it should be something similar to this I think:

selected(${caregiver_name}= 'no1', 'dontknow', 'noanswernoresponse')

However, that formula isn't working.)

Could someone please let me know what the correct formula would be?

Thanks a lot for your time!


Hi Christina,

The correct syntax is selected(${caregiver}, '2') or selected(${caregiver}, '98') or selected(${caregiver}, '99')

I've attached a sample form.
select_branch.xlsx (10.5 KB)

Can you try it and report back if it works?


1 Like

Hi Yaw,

Thank you for the response and apologies for my delay as I have been traveling.

When I tried your suggestion, both the yes response, and no/don't know/no response, skipped to question 4 (instead of yes going to questions 2; and no, don't know, no response going to question 3).

Do you have any ideas on how to resolve this?

Many thanks,


When I take the form I uploaded and use http://opendatakit.org/xiframe, I get the correct behavior. You can confirm at https://odk.enke.to/preview?form=

If you aren't getting this behavior, it'd be good to know what version of ODK Collect you are using.