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

More
11 years 10 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.
More
11 years 10 months ago - 11 years 10 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 support - Plugins, theme and development .
I don't answer to private message.
Last edit: 11 years 10 months ago by DenisChenu. Reason: == NEVER = !! idiot
The following user(s) said Thank You: Danilo
The topic has been locked.
More
11 years 10 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.
More
11 years 10 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 support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Danilo
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose