- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Display selected items from Multiple Choice in a later question
- Tatyana
- Offline
- New Member
Less
More
9 years 2 months ago #117075
by Tatyana
Replied by Tatyana on topic Display selected items from Multiple Choice in a later question
Thank you for your help! I was able to hide the subquestions for a list question type but the radio buttons are still showing up, just without the text. How can I make it all hidden unless the respondent selects those subquestions in the previous question?
Thank you,
Tatyana
Thank you,
Tatyana
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 2 months ago #117081
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 Display selected items from Multiple Choice in a later question
Tatyana, can you please explain exactly what you are trying to do, including LimeSurvey version and question types, and the steps taken so far?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Tatyana
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 2 months ago #117139
by Tatyana
Replied by Tatyana on topic Display selected items from Multiple Choice in a later question
The LimeSurvey version is 2.05
I have a multiple response question which lists colleges and asks the respondent to check those to which s/he applied . Then we want them to rank the colleges to which they applied in order of preference. Currently, there are three questions, one asking which was their first choice, the second asking about second choice, and third about third choice. We want the instrument to show only the colleges to which they applied, and hide the colleges they did not check in that question.
I used this {q1_SQ001.shown} in order to hide all other college options if they weren't selected so that participants can indicate their first choice among the colleges they applied to but the radio buttons still appear even if the text is hidden.
I have a multiple response question which lists colleges and asks the respondent to check those to which s/he applied . Then we want them to rank the colleges to which they applied in order of preference. Currently, there are three questions, one asking which was their first choice, the second asking about second choice, and third about third choice. We want the instrument to show only the colleges to which they applied, and hide the colleges they did not check in that question.
I used this {q1_SQ001.shown} in order to hide all other college options if they weren't selected so that participants can indicate their first choice among the colleges they applied to but the radio buttons still appear even if the text is hidden.
The topic has been locked.
- wendyt815
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
4 years 10 months ago #185226
by wendyt815
Replied by wendyt815 on topic Display selected items from Multiple Choice in a later question
Dear Tony, I also encounter the same problem. I'm trying to ask a multiple choice question, then from the answers generating list of possible responses for the following single choice question but the radio buttons are still showing up, just without the text. Is the array filter applicable to 2 multiple choice questions instead of 1 multiple and 1 single?
Attached is my question group for reference. Thank you so much for your kind help.
Attached is my question group for reference. Thank you so much for your kind help.
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 10 months ago #185237
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 Display selected items from Multiple Choice in a later question
Sorry, I'm a little confused. First you ask about a multiple-choice followed by a list-radio and then you ask about two multiple-choices.
What LimeSurvey version are you using?
Can you attach a small sample survey (.lss file) instead of a group.
What LimeSurvey version are you using?
Can you attach a small sample survey (.lss file) instead of a group.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- LCGreenAlp
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 9 months ago #186372
by LCGreenAlp
Replied by LCGreenAlp on topic Display selected items from Multiple Choice in a later question
Hello
I've spent hours now to try to solve my problem.
{Q1.shown} show the answer to the question if checked but i'd like to display the text (=label) of the right answer Q1_A1....
Question n°1 Your answer is the following : {Q1.shown}.
Its assement value is : + {Q1.value}.
The right answer is : xxxxxxxxxxx
At the moment I wonder if it is possible. Thank you very much for your help
I've spent hours now to try to solve my problem.
{Q1.shown} show the answer to the question if checked but i'd like to display the text (=label) of the right answer Q1_A1....
Question n°1 Your answer is the following : {Q1.shown}.
Its assement value is : + {Q1.value}.
The right answer is : xxxxxxxxxxx
At the moment I wonder if it is possible. Thank you very much for your help
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 9 months ago #186377
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 Display selected items from Multiple Choice in a later question
What question type?
Why not simply hard-code the correct label value?
Why not simply hard-code the correct label value?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- LCGreenAlp
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 9 months ago #186380
by LCGreenAlp
Replied by LCGreenAlp on topic Display selected items from Multiple Choice in a later question
Thank you very much for your quick answer
The question is a radio button question. I try something like Q1_A1.xxxx
Hard core is a possibility but the last.
The question is a radio button question. I try something like Q1_A1.xxxx
Hard core is a possibility but the last.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 9 months ago #186382
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 Display selected items from Multiple Choice in a later question
There is no Expression Manager variable for the answer labels of list-radio questions.
- manual.limesurvey.org/Expression_Manager#Access_to_Variables
- manual.limesurvey.org/Expression_Manager#Access_to_Variables
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
4 years 9 months ago - 4 years 9 months ago #186383
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Display selected items from Multiple Choice in a later question
Hi,
if you say you are using a radio button question, your approach "Q1_A1.xxxx" is not correct.
The Q1_A1 syntax means "A1" is the code of a subquestion of Q1.
How do you imagine LimeSurvey can know the "right" answer?
A simple "if-statement" will do it.
Let's say, "A4" is the correct answer:
{if(Q1!="A4","The correct answer is: 'Option 4'","Your answer is correct")}
Joffm
if you say you are using a radio button question, your approach "Q1_A1.xxxx" is not correct.
The Q1_A1 syntax means "A1" is the code of a subquestion of Q1.
How do you imagine LimeSurvey can know the "right" answer?
A simple "if-statement" will do it.
Let's say, "A4" is the correct answer:
{if(Q1!="A4","The correct answer is: 'Option 4'","Your answer is correct")}
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 4 years 9 months ago by Joffm.
The topic has been locked.
- LCGreenAlp
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
4 years 9 months ago #186396
by LCGreenAlp
Replied by LCGreenAlp on topic Display selected items from Multiple Choice in a later question
Hello
Thank you again. Your example works fine.
Have a nice day
Thank you again. Your example works fine.
Have a nice day
The topic has been locked.
- asilbering
- Offline
- Senior Member
Less
More
- Posts: 74
- Thank you received: 1
4 years 1 month ago #194529
by asilbering
Replied by asilbering on topic Display selected items from Multiple Choice in a later question
Hi!
I need help on a related topic.
I have one multiple choice question (SSP) with many many subquestions (the number is variable but can be up to 100). I am using array filtering to display only the checked options in a subsequent array filter question (nivSSP, see sample survey attached).
The second question should only be displayed if any of the options except "non" has been checked in the first question.
Using relevance I have managed to hide the question if the option "non" is chosen. But if no option is chosen I can still see the question without any subquestions (see screen shot).
I was wondering if there is any way of saying that question two has to be displayed if any option was checked without having to list all subquestions. Using only the question code for relevance has not worked, and I don't want to have to list all subquestions in the relevance field. Am I missing something?
I hope you understand what I mean.
Thanks in advance for your help!
Best,
Ana
I need help on a related topic.
I have one multiple choice question (SSP) with many many subquestions (the number is variable but can be up to 100). I am using array filtering to display only the checked options in a subsequent array filter question (nivSSP, see sample survey attached).
The second question should only be displayed if any of the options except "non" has been checked in the first question.
Using relevance I have managed to hide the question if the option "non" is chosen. But if no option is chosen I can still see the question without any subquestions (see screen shot).
I was wondering if there is any way of saying that question two has to be displayed if any option was checked without having to list all subquestions. Using only the question code for relevance has not worked, and I don't want to have to list all subquestions in the relevance field. Am I missing something?
I hope you understand what I mean.
Thanks in advance for your help!
Best,
Ana
The topic has been locked.