- Posts: 2
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Repeat question based on previous multiple choice selections
- CRGUK
- Topic Author
- Offline
- New Member
Less
More
9 years 3 months ago #114884
by CRGUK
Repeat question based on previous multiple choice selections was created by CRGUK
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?
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!
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?
Important | Not important | |
Furriness | o | o |
Size | o | o |
Friendliness | o | o |
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
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
9 years 3 months ago #114885
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on 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 answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: CRGUK
The topic has been locked.
- CRGUK
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
9 years 3 months ago #114908
by CRGUK
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?
Replied by CRGUK on topic Repeat question based on previous multiple choice selections
Thanks, holch. I feared that might be the case.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.
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?
The topic has been locked.
- holch
- Away
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
9 years 3 months ago #114923
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on 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.
Note them down. SQ001 will be the same in Q1 as in Q2.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.