end URL conditional on question response?

More
3 years 1 month ago - 3 years 1 month ago #108879 by uba
uba created the topic: end URL conditional on question response?
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: 3 years 1 month ago by uba. Reason: ps.

Please Log in to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #109189 by jelo
jelo replied the topic: end URL conditional on question response?
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:
{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.
Last Edit: 3 years 1 month ago by jelo.

Please Log in to join the conversation.

More
3 years 3 weeks ago #109624 by Mazi
Mazi replied the topic: end URL conditional on question response?
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
3 years 3 weeks ago #109626 by jelo
jelo replied the topic: end URL conditional on question response?
Is the Questioncode supported when filling variables via URL too?

Please Log in to join the conversation.

More
3 years 3 weeks ago #109628 by Mazi
Mazi replied the topic: end URL conditional on question response?
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
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now