Welcome to the LimeSurvey Community Forum

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

end URL conditional on question response?

More
10 years 11 months ago - 10 years 11 months ago #108879 by uba
Hi,

I'd like to set the end url conditional on how survey participants respond to a preceding yes/no type question. Is this possible?

Thanks.

ps. Sorry for posting this in the wrong forum...I'd move it if I could!
Last edit: 10 years 11 months ago by uba. Reason: ps.
The topic has been locked.
More
10 years 10 months ago - 10 years 10 months ago #109189 by jelo
You could use the expression manager to select the URL.

On a yes/no question place a similar code like this into the EndURL field:
Code:
{if(562999X4X13=='Y','https://www.test','https://www.test222')}
Change the SGQA Code to your Yes/No-Question and change the URLs.
And ensure that the Yes/NO is forced to be answered.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 10 years 10 months ago by jelo.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 10 months ago #109624 by Mazi
Instead of using the SGQA code better use the question code. That also makes your code portable.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
More
10 years 10 months ago #109626 by jelo
Is the Questioncode supported when filling variables via URL too?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 10 months ago #109628 by Mazi
In the latest 2.05 version this should also work if you use correct and unique question codes.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose