Welcome to the LimeSurvey Community Forum

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

Redirect to one of two different end URLs

More
5 years 5 months ago #176265 by surveySn
Replied by surveySn on topic Redirect to one of two different end URLs
I will. I forgot to add http://
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 5 months ago #176282 by holch
Replied by holch on topic Redirect to one of two different end URLs

can you make a LSS?

How about you providing a LSS file showing what you have tried? Makes a lot more sense.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 4 months ago #178064 by KompetenzZ
Replied by KompetenzZ on topic Redirect to one of two different end URLs
Hi,

I have tried the procedure described here with LS Version 3.14 but unfortunately I cannot find the error. After finishing the survey, an error page is shown (see screenshot).
My if condition in the end url is:
Code:
{if((Q2_1 == "Y"), equrl1, equrl2)}

Screenshot and lss sample survey are attached.


File Attachment:

File Name: limesurvey...4872.lss
File Size:29 KB

Cheers kompetenzz
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago - 5 years 4 months ago #178070 by tpartner
Replied by tpartner on topic Redirect to one of two different end URLs
That indicates an Expression Manager error.

If you are sure of the variable names, try removing the brackets around the condition.

Code:
{if(Q2_1 == "Y", equrl1, equrl2)}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 4 months ago by tpartner.
The topic has been locked.
More
5 years 4 months ago #178071 by KompetenzZ
Replied by KompetenzZ on topic Redirect to one of two different end URLs
Hi,

thank you for the answer. I created a new survey to test the end url with your expression from scratch. Then it worked. After that I changed the expression in end url again during the survey was activated, the error came back. Regardless if I change the expression back to the earlier one that worked, the error from my previous post persits. Unless I export the whole survey and import it, then it works again. I don't know the reasons for this, I did the "Clear assets cache" in global setting, the problem persists. It seems when I tinker around with the end url and then write the usual form again, it doesn't work anymore.
Do you have an idea for this strange behaviour?

Cheers kompetenzz
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #178072 by tpartner
Replied by tpartner on topic Redirect to one of two different end URLs
It may be that the HTML editor is messing with your code. Disable the editor in your user settings and retest.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 4 months ago #178077 by KompetenzZ
Replied by KompetenzZ on topic Redirect to one of two different end URLs
I diabled the html editor in my user setting but it seems that nothing had changed.
It seems that once I mistype the equation (I guess in a activated survey (maybe also in a not activated survey)), the error in the end url can not be fixed. Could this be a bug?

Attached are two lss files. The first one should work fine, the second one has the error with the end url when I activate the survey and execute it. For me the two surveys look pretty much the same. Does the second displays you also the end url error?

File Attachment:

File Name: limesurvey...king.lss
File Size:16 KB

File Attachment:

File Name: limesurvey...rror.lss
File Size:17 KB

Cheers kompetenzz
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #178100 by holch
Replied by holch on topic Redirect to one of two different end URLs
Works perfectly fine for me. I imported you survey and when I mark "a" in the question, it redirect to the Wikipedia Main page, if not, it redirects to the Wikipedia page about Limesurvey. No error message.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 4 months ago - 5 years 4 months ago #178101 by KompetenzZ
Replied by KompetenzZ on topic Redirect to one of two different end URLs
Did you try the the second survey "limesurvey_survey_122962_error.lss"?

Cheers kompetenzz
Last edit: 5 years 4 months ago by KompetenzZ.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #178103 by holch
Replied by holch on topic Redirect to one of two different end URLs
Oh, I didn't notice that there were two. Should have read the whole thing I guess. Let's see...

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #178104 by holch
Replied by holch on topic Redirect to one of two different end URLs
OK, the second one also works perfectly fine here.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 4 months ago #178130 by KompetenzZ
Replied by KompetenzZ on topic Redirect to one of two different end URLs
That seems very interesting, first I thought that the problem might be something with my installation but then I imported the second file "limesurvey_survey_122962_error.lss" to the free limesurvey hosted version and it is still not working there. Here is the link to the activated survey:

food-boku.limequery.com/864681?lang=en

holch wrote: OK, the second one also works perfectly fine here.

Are you sure?

Cheers kompetenzz
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose