Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Hide a question if the respondent didn't answer the previous question

  • simonbr
  • simonbr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #160060 by simonbr
Hi all !

I would like to set a filter condition on a question, so that it appears only if the respondent answered the previous question. Both questions are multiple choice questions.

Ex :

Q1 " Who do you know well among these guys? "
Possible answers : mister A, mister B, mister C

Q2 " With whom have you ever been to a concert? "
Possible answers : mister A, mister B, mister C ?

I know how to filter the answers for Q2, based on the answers to question Q1. But I would like Q2 to appear only if the respondent answered Q1.


Thanks in advance for your help !
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #160061 by Joffm
Hello, simonbr,

so Q1 is not mandatory.

What about the relevance in Q2:
Code:
count(that.Q1)>0
manual.limesurvey.org/Expression_Manager....27that.27_variables
and
manual.limesurvey.org/Expression_Manager#Implemented_Functions

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • simonbr
  • simonbr's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 5 months ago #160062 by simonbr
Thanks a lot Joffm, it works perfectly !

Best regards

Simon
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose