How to add options base on Single Answer options

@Grzesiek2010
@Xiphware

1. What is the problem? Be very detailed.
I have 2 types of questions, lets say...
Q1 - Single Selection (yes,no)
Q2 - Multiple Selection (op1, op2, op3, op4, op5)

if i select (yes in Q1) then (op1, op4 must be shown in Q2)
if i select (no in Q1) then (op2, op3, op5 must be shown in Q2)

2. What app or server are you using and on what device and operating system? Include version numbers.

i am using ODK Collect and ODK Aggregate

Hi @noman.s2325

there are two options to solve your problem:

  1. You can have two select_multiple question, the first one with options op1, op4 and the second one with options op2, op3, op5 and make only one of them relevant based on the first question: https://xlsform.org/en/#relevant
  2. You can also have just one select_multiple with all those options but use choice_filter to filter displayed options. It would be like https://docs.google.com/spreadsheets/d/1CCjRRHCyJXaSEBHPjMWrGotnORR4BI49PoON6qK01BE/edit#gid=1
1 Like

Thank you @Grzesiek2010 for your wonderful support...
only 1 more question regarding your second suggestion is that i want to add another option in Q2 "Other", how could i add Other Option in Q2 for both of the option in Q1
i.e
Q1 - Single Selection (yes,no)
Q2 - Multiple Selection (op1, op2, op3, op4, op5, other)

if i select (yes in Q1) then (op1, op4, other must be shown in Q2)
if i select (no in Q1) then (op2, op3, op5,other must be shown in Q2)

thanks in advance...

you can use or in your filter like eg. cf=${state} or cf=’both’
csTest.xlsx (6.7 KB)