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

More
4 years 3 months ago - 4 years 3 months ago #94815 by first
first created the 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 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: 4 years 3 months ago by first. Reason: explanation

Please Log in to join the conversation.

More
4 years 3 months ago #94849 by DenisChenu
DenisChenu replied the topic: How can I show the answer label secleted in question A into the question text o
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).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: first

Please Log in to join the conversation.

More
4 years 3 months ago - 4 years 3 months ago #94859 by first
first replied the topic: How can I show the answer label secleted in question A into the question text o
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: 4 years 3 months ago by first. Reason: text "case QA1 is" edited to text "case QA is"

Please Log in to join the conversation.

More
4 years 3 months ago #94860 by DenisChenu
DenisChenu replied the topic: How can I show the answer label secleted in question A into the question text o
{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).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: first

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now