Display selected items from Multiple Choice in a later question

More
4 years 6 months ago #117075 by Tatyana
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

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #117081 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 years 6 months ago #117139 by Tatyana
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.

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago #185226 by wendyt815
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.
Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago #185237 by tpartner
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.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186372 by LCGreenAlp
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

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186377 by tpartner
What question type?

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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186380 by LCGreenAlp
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.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186382 by tpartner
There is no Expression Manager variable for the answer labels of list-radio questions.

- 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago - 1 month 1 week ago #186383 by Joffm
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


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 1 month 1 week ago by Joffm.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #186396 by LCGreenAlp
Hello

Thank you again. Your example works fine.

Have a nice day


:)

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!