Survey Responses Shows Expression Rather Than What the User Selected

More
8 months 1 week ago #179119 by nh905
I am running Version 3.15.5+181115. I have a 'ranking' question where respondents select up to three options from a list. I have a follow-on 'ranking' question where they get to pick at most one from what they selected in the first question. I created the answer options for the second question using expressions similar to "{G2Q1_x.shown}".

Everything works fine from the respondents perspective but when I look at the submitted response, the answer to the second question contains the expression, rather the substituted text (see attachment). I am seeing this in 'Display responses' and when I export the data ('Full Answers').

Is there a way to get the submitted response text? I can work around the problem by post-processing the exported data but that could introduce errors.

Thanks, Norbert
Attachments:

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

LimeSurvey Partners
More
8 months 1 week ago #179120 by DenisChenu
Yes, but you need to create 3 equation question for this.

For the 1st rank ,create equation and put inside {RANK_1.shown}.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .

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

More
8 months 1 week ago #179129 by nh905
Hi Denis, I think I did that. The first 'ranking' question (G2Q1) has a bunch of static answer options. The second 'ranking' question has three answer options which reference the 0-3 options that the respondent selected. I attached a screenshot of the second question definition. When someone completes the survey, the resposne saved in the database is one of the expressions, rather than the question 1 options that the expressions point to.

I freely admit that I am very new to Expression Manager, so I may be missing something obvious.

Thanks, Norbert
Attachments:

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

More
8 months 1 week ago #179138 by nh905
I attached an export of a simple survey that demonstrates the issue. Everything looks fine when the respondent completes the survey, but the saved data for the second question is a pointer to the answers to the first question.
Attachments:

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

More
8 months 1 week ago #179145 by DenisChenu
No, you don't


File Attachment:

File Name: limesurvey...tion.lss
File Size:23 KB

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:
The following user(s) said Thank You: nh905

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

More
8 months 1 week ago #179157 by nh905
Hi Denis, thanks for the working survey example. I created a bunch of hidden questions of type Equation to resolve the computed answer options and the survey is going live shortly. I also found the section in the manual under the Expression Manager. I think the wording could be clarified and emphasised to avoid the LimeSurvey user from expecting that 'what you see is what you get'.

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!