Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: How can I show the answer label secleted in question A into the question text o

How can I show the answer label secleted in question A into the question text o 3 years 7 months ago #94815

  • first
  • first's Avatar
  • Offline
  • Platinum Lime
  • Posts: 329
  • Thank you received: 35
  • Karma: 15
How can I show the answer label secleted in question A into the question text of question B?

QA:LIke first we ask which car you like the most?

BMW
Audi

QB:Why do you like CAR?

//Here CAR should be the answer selected in QA
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
Last Edit: 3 years 7 months ago by first. Reason: explanation
The administrator has disabled public write access.

How can I show the answer label secleted in question A into the question text o 3 years 7 months ago #94849

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
Why do you like your {QA.shown}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
The following user(s) said Thank You: first

How can I show the answer label secleted in question A into the question text o 3 years 7 months ago #94859

  • first
  • first's Avatar
  • Offline
  • Platinum Lime
  • Posts: 329
  • Thank you received: 35
  • Karma: 15
Thank you very much DenisChenu:)

You answers is working perfectly if QA is Single choice question but in case QA is a Multiple choice question I am getting the text {QA.shown} in red color.While I mouse over on this red text I see a message "undefined variable".How can I show the answer label of the answer selected in Multiple choice question.
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
Last Edit: 3 years 7 months ago by first. Reason: text "case QA1 is" edited to text "case QA is"
The administrator has disabled public write access.

How can I show the answer label secleted in question A into the question text o 3 years 7 months ago #94860

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9586
  • Thank you received: 1375
  • Karma: 390
{QA_SQ001.shown} for the 1st subquestion : show answer.
Can do some test like this:

{if(QA_SQ001.code=="Y",QA_SQ001.question+',','')} to fix the , (need some work more).
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (use private message).
The administrator has disabled public write access.
The following user(s) said Thank You: first
Time to create page: 0.234 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form