Welcome to the LimeSurvey Community Forum

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

Display the answers of a previous question, in a new question ?

More
6 years 9 months ago #163467 by cym
Hello,

In a 2 steps questionnaire, is that possible to display the results of a 1st question in a 2nd question ?
For instance we ask in a 1st question to imagine 5 adjectives to describe a situation.
In the 2nd question, we offer to the participants to append their selection of 5 adjectives, with 3 new adjectives issued from a list of 20 pre-defined adjectives.
We would like to ask to the participants to append their 1st answer by selecting 3 new adjectives from a list of 20 adjectives, but with a reminder of the first 5 adjectives they already imagined...

Many thanks in advance for your suggestions and advice...

Regards,
Cyril
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 9 months ago - 6 years 9 months ago #163469 by tpartner
Please refer to the manual. Expression Manager Tailoring/Piping - www.limesurvey.org/manual/Expression_Manager#Tailoring.2FPiping

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 6 years 9 months ago by tpartner.
The following user(s) said Thank You: cym
The topic has been locked.
More
6 years 9 months ago #163480 by cym
Hello,
Thank you very much, I managed to display the answers of Question #1 in the text of Question #2

As a reminder, here are the anwers you have provided at first step. Do you wish to add some ?

{valeur1}

{valeur2}

{valeur3}

{if(!is_empty(valeur4),valeur4,'')}

{if(!is_empty(valeur5),valeur5,'')}

{if(!is_empty(valeur6),valeur6,'')}

{if(!is_empty(valeur7),valeur7,'')}


With 'valeur1' to 'valeur7' beeing the Answer ID.

Regards,
Cyril
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose