Welcome to the LimeSurvey Community Forum

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

Reference question text in later question

More
9 years 2 months 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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #124056 by holch
Replied by holch on topic Reference question text in later question
Unfortunately the question text of a subquestion can not be referenced in later questions (only the actual question text).

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #124057 by holch
Replied by holch on topic Reference question text in later question
Not sure if is a bug or a feature.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #124058 by holch
Replied by holch on topic Reference question text in later question
Not sure if is a bug or a feature.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
9 years 2 months ago #124059 by jelo
The topic has been locked.
More
9 years 1 month ago #126118 by first
Replied by first on topic Reference question text in later question
but some javascript workaround can do the trick.

Survey Designer and Programmer
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 1 month ago #126134 by DenisChenu
Replied by DenisChenu on topic Reference question text in later question
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