Use an answer in another question?

More
5 months 2 weeks ago #168171 by ecottrell
ecottrell created the topic: Use an answer in another question?
Is there a way to show the answer a person gave of a previous question, in a new question, (in general, or specifically in LimeSurvey Pro basic account)

For example,

Question 2 is a checkbox question. In question 41 I would like to remind them of their answers to question 2 before they answer question 41. Is there a way to do that?

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

More
5 months 2 weeks ago #168172 by holch
holch replied the topic: Use an answer in another question?
Yes, this is possible. You need to use the Expression Manager to pipe answers to previous questions into a later question. I assume with checkbox question you mean a multiple answer question? Those are a little trickier to work with, because you need to check every answer option, if it has been checked or not. Single answer questions are easier, as you can just output the answer that was chosen.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
The following user(s) said Thank You: ecottrell

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

More
5 months 2 weeks ago #168179 by ecottrell
ecottrell replied the topic: Use an answer in another question?
I will play around with the Expression Manager! I wasn't sure where to look. Thank you :). It is a multiple answer question. There's like... 30 different options and people can be any combination of the 30. I foresee tedious work in my future :)

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

More
5 months 2 weeks ago #168180 by holch
holch replied the topic: Use an answer in another question?
Well, you can always create something like that:

{if(questioncode_answercode1=="Y", "Answer 1", "")}
{if(questioncode_answercode2=="Y", "Answer 2", "")}
etc.

and copy this for all 30 answers. Depends a little on what you want to show in the follow up question. If you can put an example survey (export a LSS file with only the two questions that we are talking about), we can have a look at it and maybe give some suggestions.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

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

More
5 months 2 weeks ago #168185 by ecottrell
ecottrell replied the topic: Use an answer in another question?
I *think* I did the lss correctly (I just created a new survey as a test, with the two questions). The second question is in a different section and at the end of the survey, I want to be able to remind participants what they selected at the beginning of the survey as a refresher (since it is a pretty long survey).

Thank you so much for your help, I really appreciate it. I used Limesurvey in my undergraduate degree because our university had access to it, but it's been a year and it looks different (I'm at a different school now for my Masters, so I had to get my own account which may be why it looks different) so it's taking some relearning.
Attachments:

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

More
5 months 2 weeks ago #168192 by Joffm
Joffm replied the topic: Use an answer in another question?
To display the answers of Q1, comma separated, just enter

{list(that.Q1.shown)}





To understand, please read the manual, especially:
https://manual.limesurvey.org/Expression_Manager#The_reserved_.27this.27.2C_.27self.27.2C_and_.27that.27_variables

https://manual.limesurvey.org/Expression_Manager#Implemented_Functions

https://manual.limesurvey.org/Expression_Manager#Access_to_Variables

And please send a *.lss file, not something else, like a *.zip file.

Best regards
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

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

More
5 months 2 weeks ago #168199 by ecottrell
ecottrell replied the topic: Use an answer in another question?
Thank you! When I was looking through the manual I misunderstood that as it would show the subquestions options again, not the answers they selected. That is perfect. I appreciate your help!

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!