Answers selected in ranking question displayed as answer options in array

More
2 months 3 weeks ago #196715 by vzyldd
I’m in the dark. I need to display the options selected in a ranking question (limited to 3 answers) as 3 of the answer options of an array question type.

Q4 is the ranking question.
Q5 is the array type question.



Sample survey attached.

(LimeSurvey Version 3.17.2+190408)
Attachments:

Please Log in to join the conversation.

LimeSurvey Partners
More
2 months 3 weeks ago #196717 by Joffm
Hi,
if you do the "normal" things to find out, you activate the survey, enter some well defined data and have a look at the answer table.

Here you see, that the
  1. ranked item is stored in Q4_1
  2. ranked item is stored in Q4_2
  3. ranked item is stored in Q4_3

And if you read here
https://manual.limesurvey.org/Expression_Manager#Access_to_Variables
you know that {Q4_1} returns the code of rank_1 and {Q4_1.shown} returns the text value of rank_1.

Summary:
You have to enter
<p style="text-align: center;"><span style="color:#c0392b;"><strong>{Q4_1.shown}</strong></span></p>
<p style="text-align: center;"><span style="color:#c0392b;"><strong>{Q4_2.shown}</strong></span></p>
...



Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
2 months 3 weeks ago #196931 by vzyldd

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now