Welcome to the LimeSurvey Community Forum

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

Links: Direct to different surveys, based on the answer to a question

  • Danilo
  • Danilo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #111151 by Danilo
Dear all,

I would like to do the following:
If the participant answers to the first question "yes", s/he will be directed to survey B.
If the participant answers to the first question "no", s/he will be directed to survey C.
Is this feasible, please?

Best wishes,
Daniel

(Why using conditions is not an easy solution: After completing survey B, participants are directed via "End URL" to a survey D, where they can enter their email addresses. This survey should be separate from survey B to ensure data protection. Participants who have participated in survey C, in contrast, are not supposed to end up at survey D.)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago - 9 years 7 months ago #111212 by DenisChenu
Put this in endurl
Code:
{if(QCODE=="yes","https://linktosurveyB","https://linktosurveyC")}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 7 months ago by DenisChenu. Reason: == NEVER = !! idiot
The following user(s) said Thank You: Danilo
The topic has been locked.
  • Danilo
  • Danilo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #111228 by Danilo
It works when I use two equal signs, combined with the answer code:

...QuestionCode=="AnswerCode"...


Many thanks for your help!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 7 months ago #111229 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Danilo
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose