Welcome to the LimeSurvey Community Forum

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

Setting up End URL dynamically

  • peteropeyemijames
  • peteropeyemijames's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 day 10 hours ago #270388 by peteropeyemijames
Setting up End URL dynamically was created by peteropeyemijames
Please help us help you and fill where relevant:
LimeSurvey version: 6
Own server or LimeSurvey Cloud: My own server
Survey theme/template:
==================
I have a survey where I have four questions in the same randomization group. It is setup to display one of the four questions to the user. When the question get presented, users have the option to click on one of the buttons. I want the end url to be a praticular website if their reponse is "Yes" regardless of which of the four questions they get presented with. I have written syntax in the End URL field but the problem is that it redicrects all users to the alternate URL at all times.

Please see my syntax below:
{if(G03Q11=="Yes" OR G03Q12=="Yes" OR G03Q13=="Yes" OR G03Q14=="Yes", " mainurl.com ", " alternateurl.com ")}

Thanks you for your help,
Peter

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 day 8 hours ago #270390 by tpartner
Replied by tpartner on topic Setting up End URL dynamically
You need to use answer codes, not answer text.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: peteropeyemijames

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose