Adding a static choice to a list of filtered options

Hi,
I want following in my questionnaire

Q1: Which of the following food you like to eat? (select_multiple)

  1. Pizza
  2. Burger
  3. Chinese

Choice filter will apply on Q2, and will only display selected options of Q1 in Q2.
Let suppose selected options in Q1 was '1' and '2'. I also want an option compulsory like 'Don't Know' in Q2.
For Example:
Q2: Which of the following food you eat most in last seven days? (select one)

  1. Pizza
  2. Burger
  3. Don't Know

One way would be to add an "Other" option. I'm not sure this really gives you exactly what you want though so I had a little play around and found a different option: you can add a choice in your list of food that has the name "default" and the label "Don't Know" and then you can use a choice filter like so to filter on the previous answer and include the default option:

selected(${previous_question}, name) or name='default'

If you want to then not include the default in other questions you can just do:

name!='default'

Thank you so much sir, this solution works for me. This was exactly my requirement. Thanks again :slight_smile:

1 Like