Welcome to the LimeSurvey Community Forum

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

Reference question text in later question

More
10 years 1 week ago #124052 by mikeg
I would like to be able to the text for a subquestion reference the text used in a previous subquestion.
I know I can use the code {questiongroup_subquestion} to reference the answer, e.g. 2 or 4, but not the question text itself.
The topic has been locked.
More
10 years 1 week ago #124056 by holch
Unfortunately the question text of a subquestion can not be referenced in later questions (only the actual question text).

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.
The topic has been locked.
More
10 years 1 week ago #124057 by holch
Not sure if is a bug or a feature.

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.
The topic has been locked.
More
10 years 1 week ago #124058 by holch
Not sure if is a bug or a feature.

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.
The topic has been locked.
More
More
9 years 11 months ago #126118 by first
but some javascript workaround can do the trick.

Survey Designer and Programmer
The topic has been locked.
More
9 years 11 months ago #126134 by DenisChenu
Hi,

www.limesurvey.org/manual/Expression_Man...#Access_to_Variables : Qcode.question : the text of the question

For sub question :
{if(!is_empty(QCODE_SQ001),"You check :"+QCODE_SQ001.question,"")}

Think it work in previous question too.

.question give :
1: the "Question text" for single question (QCODE.question)
2: the sub questio text for multiple question (QCODE_SQ001.question)

For sub question : there is no way to have "header text" : real question text. Only the sub question.

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 topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose