Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Answers selected in ranking question displayed as answer options in array

  • vzyldd
  • vzyldd's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 2 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)
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 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
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
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • vzyldd
  • vzyldd's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 1 week ago #196931 by vzyldd
Big thank you Joffm.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose