Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: end URL conditional on question response?

end URL conditional on question response? 2 years 6 months ago #108879

  • uba
  • uba's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
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: 2 years 6 months ago by uba. Reason: ps.
The administrator has disabled public write access.

end URL conditional on question response? 2 years 6 months ago #109189

  • jelo
  • jelo's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1501
  • Thank you received: 205
  • Karma: 58
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: 2 years 6 months ago by jelo.
The administrator has disabled public write access.

end URL conditional on question response? 2 years 6 months ago #109624

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
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'"
The administrator has disabled public write access.

end URL conditional on question response? 2 years 6 months ago #109626

  • jelo
  • jelo's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1501
  • Thank you received: 205
  • Karma: 58
Is the Questioncode supported when filling variables via URL too?
The administrator has disabled public write access.

end URL conditional on question response? 2 years 6 months ago #109628

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
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'"
The administrator has disabled public write access.
Time to create page: 0.333 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form