Rediriceting to one end URL when an specific answer is chosen

Mehr
4 Monate 1 Woche her #180224 von KompetenzZ
Hi community,

when I need to redirect to one of two different End URLs it works according to: www.limesurvey.org/community/forums/can-...ent-end-urls?start=0

But now I would like to redirect only to one End URL: If a specific answer is chosen, the survey should redirect to the URL. If the answer is not chosen, the common end message text (which I typed in there) should be displayed.

I thought this is the right code:
{if(Q2_1 == "Y", equrl1)}

But there is an expression manager error. Is this a bug?

A test survey with the described behaviour is attached.

Cheers kompetenzz
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
4 Monate 1 Woche her #180227 von tpartner
You always need to include the result if the condition is false (although I, have not tried this in an End URL).

{if(Q2_1 == "Y", equrl1  "")}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
4 Monate 1 Woche her - 4 Monate 1 Woche her #180228 von DenisChenu

tpartner schrieb: You always need to include the result if the condition is false (although I, have not tried this in an End URL).

Not since 3.0.2+180110 (i must update manual)
github.com/LimeSurvey/LimeSurvey/commit/...b1ffe6caffbaae39751c


Else : for endurl : surely the quote issue bugs.limesurvey.org/view.php?id=14113#c50431

Best is to set it in the equation directly


Manual updated : manual.limesurvey.org/index.php?title=Ex...=135017&oldid=133368

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Anhänge:
Letzte Änderung: 4 Monate 1 Woche her von DenisChenu. Begründung: Manual updated

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
4 Monate 1 Woche her #180234 von KompetenzZ
Thank you for the quick help,

@tpartner: It would be fair to say:
{if(Q2_1 == "Y", equrl1,  "")}
with the second comma.

Anyway, the if statement in the End URL field seems not to accept double quotes ", I tried it with single quotes ', it worked. Maybe that was your point Denis?
But since I need to be sure I changed my question and End URL statement to:
{if(Q2 == 1, equrl1)}
without any quotes.

DenisChenu wrote: Best is to set it in the equation directly

I always did that.


If someone needs it, a working test survey is attached.

Dateianhang:

Dateiname: limesurvey...6611.lss
Dateigröße:16 KB

Cheers kompetenzz
Anhänge:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha