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 3 months ago #94815

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 326
  • Thank you received: 34
  • 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 3 months ago by OMdev. 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 3 months ago #94849

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9259
  • Thank you received: 1320
  • Karma: 382
Why do you like your {QA.shown}
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: OMdev

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

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 326
  • Thank you received: 34
  • 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 3 months ago by OMdev. 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 3 months ago #94860

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9259
  • Thank you received: 1320
  • Karma: 382
{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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
The following user(s) said Thank You: OMdev
Moderators: ITEd
Time to create page: 0.192 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form