Welcome to the LimeSurvey Community Forum

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

Hide/Show answers depending on previous question/answer

  • univations
  • univations's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #123595 by univations
Hello,

I have a problem to create a filter.

I hide/show answers depending on previous question/answer.

e.g.
There are three cafeterias with different offers like salad bar, hot drinks, lunch menu but the offers are not the same in each cafeteria. So I want to hide the option which is not available in the selected cafeteria.

first question
Which cafeteria do you visit?
#1 blue cafeteria
#2 red cafeteria
#3 green cafeteria

second question
Why do you visit your favourit cafeteria? Because of...

(answers by previous selected #1 blue cafeteria)
#1 salad bar
#2 hot drinks
#3 lunch menu

(answers by previous selected #2 red cafeteria)
#1 salad bar
#2 hot drinks

(answers by previous selected #3 green cafeteria)
#1 hot drinks
#2 lunch menu

Thanks a lot.
The topic has been locked.
More
8 years 7 months ago #123596 by jelo
It depends on the Limesurvey Version you are using.

LS2.06+ offers subquestion relevance, which would allow you to only show items in the second question depending on the answer of the first question.

When using LS2.05+ or lower you would create three versions of the second question. And use conditions to display only one of three question depending on the answer of the first question.

I would use the conventional variant and would create a second question for every cafeteria.
manual.limesurvey.org/Setting_conditions...itions_in_LimeSurvey

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • univations
  • univations's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #123897 by univations
Thank u guys. I have found a solution using the matrix filter function. Further, I created some hidden questions with prefilled answers in between the two questions which I wanted to connect logically. If anybody is interested in my solution, I `d be glad to offer more details.

Cheers!
The topic has been locked.
More
8 years 6 months ago #123914 by jelo
Feel free to post it.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose