Check out the LimeSurvey source code on GitHub!

Refer in the question to a answer from the respondent

  • Christine_Munich
  • Christine_Munich's Avatar Topic Author
  • Visitor
  • Visitor
3 years 5 months ago #98506 by Christine_Munich
Hello,

my first question in the survey is to ask about a topic. The respondent have to type in the answer.
In the second question in the survey, the question should contain the answer of the first question.

Is that possible? How can I do that? :-)

Thank you for helping!!!

Please Log in to join the conversation.

  • Shaq
  • Shaq's Avatar
  • Visitor
  • Visitor
3 years 5 months ago #98547 by Shaq
Hi Christine,

This is possible with the function {INSERTANS:answid}.

answid : surveyidXgroupidXquestionid+answerid

For example, your survey id is 61679,your group id is 28 and your question id 68.
If you want, in the next question (id 69) to refer to the first answer in the previous question (id 68),
you'll have to add {INSERTANS:61679X28X681} to the question or answer menu. If you want to refer to the second answer.... {INSERTANS:61679X28X682}.

Your survey should be configured to display questions "group by group" and the question receiving the answer should be "optional".

Hope it will help you,

Regards,

Shaq

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form