Repeat question based on previous multiple choice selections

More
2 years 11 months ago #114884 by CRGUK
CRGUK created the topic: Repeat question based on previous multiple choice selections
Hello,

I would like to repeat a question asking for feedback, based on a previous multiple choice question - which itself is filtered on the question before it.

For example:

QUESTION 1 [multiple choice]
Which of the following animals do you like?
- Cats
- Dogs
- Rabbits
- Horses
- Birds
- Hamsters

QUESTION 2 [multiple choice]
Which of those animals have you ever owned as a pet?
- Options defined by array filter of those selected in Q1

QUESTION 3 [array]
What was important to you about this animal?
ImportantNot important
Furrinessoo
Sizeoo
Friendlinessoo



Question 3 would then be repeated for each of the animals selected in Q2 as having been owned as pets.



Setting up question 2 is simple enough, but I have no idea how to set up question 3? Any assistance would be greatly appreciated. Thank you!
The following user(s) said Thank You: manishbhatol

Please Log in to join the conversation.

More
2 years 11 months ago #114885 by holch
holch replied the topic: Repeat question based on previous multiple choice selections
You will need to set-up as many question 3 questions as there are options in question 1. Then you need to show and hide the questions via conditions or expressions depending on whether the option has been chosen in question 2 or not.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: CRGUK

Please Log in to join the conversation.

More
2 years 11 months ago #114908 by CRGUK
CRGUK replied the topic: Repeat question based on previous multiple choice selections

holch wrote: You will need to set-up as many question 3 questions as there are options in question 1. Then you need to show and hide the questions via conditions or expressions depending on whether the option has been chosen in question 2 or not.

Thanks, holch. I feared that might be the case.

The next question, therefore, is how do I check the answers selected in Q2 and create that condition? As the Q2 options are dynamically created from Q1 with array filter, the conditions builder for Q3 only offers me the standard 'SQ001' to choose from - I'm not sure what names etc the actual options would have?

Please Log in to join the conversation.

More
2 years 11 months ago #114923 by holch
holch replied the topic: Repeat question based on previous multiple choice selections
You will have to compare the question code with that in the first question, then you know which one was chosen.

Note them down. SQ001 will be the same in Q1 as in Q2.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!