Welcome to the LimeSurvey Community Forum

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

How to: Transfer text of Subquestions from one question to another.

  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 4 months ago #160467 by jma6610
I have a number of Questions pairs (array questions) where the second question in a 2-question pair has the same sub-questions as the first question. I will likely have to do a good bit of editing as I test the survey. I would like to edit only one question and not both to cut the amount of editing time required.

How can I transfer the text of Subquestion 1 in Question 1 to Subquestion 1 in Question 2 ?

Thanks in advance,

Jeff
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160506 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 4 months ago #160507 by jma6610
I'm new to accessing variables through expression manager, so as soon as I figured out that SQ001 in your example above referred to the code I'm using for the sub-question, I got it to work. E.g., {Q1_1.question} works in my case.

Perhaps a quick follow-up question: Is there any way to incorporate code to replace Q1 with the question code from the question that comes before the current one? E.g., {CurrentQuestion Minus 1 _1.question}


Thanks much,

Jeff
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160511 by tpartner
No, that's not possible.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose