- Posts: 16
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Show only selected answers from previous question in subquestions field
- riversampling1
- Topic Author
- Offline
- New Member
Less
More
3 years 2 weeks ago - 3 years 2 weeks ago #214775
by riversampling1
Show only selected answers from previous question in subquestions field was created by riversampling1
Dear colleagues,
I have a multiple choice question S1, where the respondent can choose several possible answers SQ001, SQ002...
The next question S2 is a single choice question, that should show only the selected answers from S1 in the section of possible answers (with radio buttons).
I put "S1" into array filter box in question S2, and put {S1_SQ001.shown} in the section of answers (subquestion) for S2.
How can I hide the empty radio button, when the answer is not chosen? Please see attachment.
Or how can I show only selected answers from previous question in the subquestion place in question S2?
Thanks a lot in advance!
Regards!
I have a multiple choice question S1, where the respondent can choose several possible answers SQ001, SQ002...
The next question S2 is a single choice question, that should show only the selected answers from S1 in the section of possible answers (with radio buttons).
I put "S1" into array filter box in question S2, and put {S1_SQ001.shown} in the section of answers (subquestion) for S2.
How can I hide the empty radio button, when the answer is not chosen? Please see attachment.
Or how can I show only selected answers from previous question in the subquestion place in question S2?
Thanks a lot in advance!
Regards!
Attachments:
Last edit: 3 years 2 weeks ago by riversampling1.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
3 years 2 weeks ago #214777
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Show only selected answers from previous question in subquestions field
There must be something wrong with your array-filter settings.
Can you attach a small sample survey (.lss file) containing only those questions?
What LimeSurvey version are you using?
Can you attach a small sample survey (.lss file) containing only those questions?
What LimeSurvey version are you using?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, riversampling1
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12940
- Thank you received: 3979
3 years 2 weeks ago - 3 years 2 weeks ago #214779
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Show only selected answers from previous question in subquestions field
Do S1 and S2 have identical subquestion (S1) resp. answer option (S2) codes?
I am very sure your answer options of S2 are not coded "SQ001", "SQ002",...
As you see here
[url] manual.limesurvey.org/Question_type_-_Li...r_.28array_filter.29 [/url]
I am very sure your answer options of S2 are not coded "SQ001", "SQ002",...
As you see here
[url] manual.limesurvey.org/Question_type_-_Li...r_.28array_filter.29 [/url]
JoffmThe subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the array filter function will not filter the answers to the first question. Check the below example to better understand how the whole system works.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 2 weeks ago by Joffm.
The topic has been locked.
- riversampling1
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
3 years 2 weeks ago #214780
by riversampling1
Replied by riversampling1 on topic Show only selected answers from previous question in subquestions field
You are absolutely right! I did not have the same codes of subquestions. I have changed this and it worked! Thank you so much!
Kindest regards!
Kindest regards!
The following user(s) said Thank You: DenisChenu
The topic has been locked.