Welcome to the LimeSurvey Community Forum

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

How to display array question?

More
4 years 1 month ago - 4 years 1 month ago #218523 by cheeseburger
Hi. I have a question of type "array" with a QID of Q1. My ANSWER OPTIONS are A1/Yes and A2/No. My SubQuestions are SQ001/Cat and SQ002/Dog. The QUESTION for the entire item (when you click EDIT and place a value in the QUESTION field) is Do you like cats and dogs? I am trying to display the question value using this type of syntax {Q1.question} but am getting red highlighting reading that it is not seeing this as a valid variable. I have tried several other options for the syntax but can't seem to get it to connect. My goal is to create a summary page where we display the question and the values that were selected for each sub question. So it would display like this:   Do you like cats and dogs: Dogs - No, Cat's - Yes. 

This page ( www.limesurvey.org/manual/ExpressionScri...e_using_placeholders ) touches on the topic, but it doesn't seem to reference this basic type of array question type OR the connection using {QID.question} is not connecting for some unknown reason. The 50 other short text questions we have are connecting fine. This array is the only challenge. 

LS version: 3.27.7

Thank you for any help!
 
Last edit: 4 years 1 month ago by cheeseburger.
The topic has been locked.
More
4 years 1 month ago - 4 years 1 month ago #218524 by holch
Q1.question does not exist in Limesurvey for this question type (Afaik).

Unfortunately you can't display the question text with this for Matrix-Questions (or any question with subquestion, as far as I know - not sure if this has changed in LS 5).

You can display the subquestion text with questioncode_subquestioncode.question

I think there is a feature request somewhere for displaying the question text also for questions with subquestions, but not sure if there has been done something for LS5

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 4 years 1 month ago by holch.
The following user(s) said Thank You: cheeseburger
The topic has been locked.
More
4 years 1 month ago #218530 by DenisChenu

Unfortunately you can't display the question text with this for Matrix-Questions (or any question with subquestion, as far as I know - not sure if this has changed in LS 5).

 
Only need to activate core plugin :https://www.limesurvey.org/manual/ExpressionQuestionForAll
I n fact since .question is needed for specific usage and take a lot memory in SESSION : i think we must move whole in plugin (like .help).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: holch
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose