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

More
3 years 11 months ago - 3 years 11 months ago #94815 by first
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
Last Edit: 3 years 11 months ago by first. Reason: explanation

Please Log in to join the conversation.

More
3 years 11 months ago #94849 by DenisChenu
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 (or search sondages pro).
The following user(s) said Thank You: first

Please Log in to join the conversation.

More
3 years 11 months ago - 3 years 11 months ago #94859 by first
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
Last Edit: 3 years 11 months ago by first. Reason: text "case QA1 is" edited to text "case QA is"

Please Log in to join the conversation.

More
3 years 11 months ago #94860 by DenisChenu
{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 (or search sondages pro).
The following user(s) said Thank You: first

Please Log in to join the conversation.