How to create a skip with multiple conditions?

I have a quite similar situation here:
Q.1. Sex (select one)

  • Male
  • Female
    Q2. Which colour do you like? (select mutiple)
  1. Red
  2. Pink
  3. Blue
  4. Purple
  5. Green
    Q3, Why do you like these colour? Skip logic: Only visible if chose Male in Q1 and Q2: choose at least one of 3 or 4 or 5, with or without choosing 1 and/or 2.
    I am struggling with setting skip logic for Q3 according to this situation. So please help me. Thanks a lot.

Welcome to the community, @HaBui! You could simply add a skip logic to Q3 with ${sex} = 'male. Maybe this is enough as you have put a condition that should require/or not require ${Q2}=1or2or3or4or5`.

You should be able to learn more about skipping through this support article Adding Skip Logic.

I start a XLS form up to your advice but it still doesn’t work

@HaBui, you will need to add skip logic to a select_multiple question as outlined in our previous post:

So with this, the skip logic for E3 would be as follows:

${Q2}='1' and (selected(${Q2},'3') or selected(${Q2},'4') or selected(${Q2},'5'))

Similarly, your skip logic for E4 would be as follows:

${Q2}='2' and (selected(${Q2},'3') or selected(${Q2},'4') or selected(${Q2},'5'))

@Kal_Lam Thank you so much. My problem has been solved. Skip logic is wonderful :slight_smile:

1 Like

@HaBui, :clap: :heart: :partying_face: