LimeSurvey Community Edition Version 5.6.10+230313
Self Hosted Using cPanel
Default Theme
==================
This is my first post so any feedback is welcome, and I'm similarly quite new to Limesurvey.
Thank you in advance for any kind support
My Query
If it is possible, I would like to know how I am able to use the value of respondants prior answer, as a variable in a subsequent question.
For example
Question 1 - How many peices of fruit do you each per day
Respondants Answer - 5
Question 2 - Select the {5} peices of fruit you eat from the below....
In Question 2, the bracketed value would be the called variable.
It's important to note that the called variable would need to reference the live respondants previous answer value, and not call a value from a completed survey (and obviously not a static value)
I understand to acheive this (if it can be done), that the answer to question 1 would need to be declared via a static variable name. I'm used to working with VBA and would normally approach this
Dim Q1A1 As String
Q1A1 = [FieldName]
Then in Question 2, I would call this akin to
="Select the " & Q1A1 & " peices of fruit you eat from the below"
Does Limesurvey have this type of functionality please?
Read about the expression manager / script and "piping" or micro tayloring in the manual.
Can't search the links for you at the moment, but you'll find it quite easily.
Depending on the question type it is quite simple.
For a single answer question for example {Q1} will give you the chosen answer code for the question Q1 and {Q1.shown} will give you the text of the answer option shown to the respondent.
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.