- Posts: 21
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Automatically load URL with Expression Manager
- cberghoff
- Topic Author
- Offline
- Junior Member
Less
More
5 years 7 months ago #172906
by cberghoff
Automatically load URL with Expression Manager was created by cberghoff
Hi everyone,
I am running into a problem I've never had before. I have a survey set to automatically load a url at the end, which points to a processing page on my website and includes the user token and answers from a few questions. Here is what it looks like in the administration panel:
https://[SITE]/[PROCESSPAGE]?c={CONSENT}&t={TOKEN}&e1={E1}&e2={E2}
If I turn off automatic loading, the link presented on the final survey page looks as I would expect, and everything works fine by clicking on the link. However, when using automatic load, this is the link I get returned:
https://[SITE]/[PROCESSPAGE]?c=%3Cspan%20id=%27LEMtailor_Q_0_1%27%3E2%3C/span%3E&t=rs90gSE7gcbnpkl&e1=%3Cspan%20id=%27LEMtailor_Q_0_3%27%3E%3C/span%3E&e2=%3Cspan%20id=%27LEMtailor_Q_0_4%27%3E%3C/span%3E
I'm getting the token, but I don't know what is going on with the other items, which are just yes/no mask and single choice (coded 1 & 2) questions. Any advice, other than make my participants click on a link at the end? Running version 3.14.1+180731.
Thanks,
Chris
I am running into a problem I've never had before. I have a survey set to automatically load a url at the end, which points to a processing page on my website and includes the user token and answers from a few questions. Here is what it looks like in the administration panel:
https://[SITE]/[PROCESSPAGE]?c={CONSENT}&t={TOKEN}&e1={E1}&e2={E2}
If I turn off automatic loading, the link presented on the final survey page looks as I would expect, and everything works fine by clicking on the link. However, when using automatic load, this is the link I get returned:
https://[SITE]/[PROCESSPAGE]?c=%3Cspan%20id=%27LEMtailor_Q_0_1%27%3E2%3C/span%3E&t=rs90gSE7gcbnpkl&e1=%3Cspan%20id=%27LEMtailor_Q_0_3%27%3E%3C/span%3E&e2=%3Cspan%20id=%27LEMtailor_Q_0_4%27%3E%3C/span%3E
I'm getting the token, but I don't know what is going on with the other items, which are just yes/no mask and single choice (coded 1 & 2) questions. Any advice, other than make my participants click on a link at the end? Running version 3.14.1+180731.
Thanks,
Chris
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 7 months ago #172908
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Automatically load URL with Expression Manager
Those spans indicate Expression Manager errors. Are you sure you have the exact spelling of the question codes in the curly braces?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- cberghoff
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 7 months ago #172910
by cberghoff
Replied by cberghoff on topic Automatically load URL with Expression Manager
Hi Tony,
I do. As I said, EM gives me the correct information if I turn off automatic loading of the url. Here is what I get in that case:
https://[SITE]/[PROCESSOR]?c=1&t=ujqn0J1spbRvRlS&e1=Y&e2=N
I do. As I said, EM gives me the correct information if I turn off automatic loading of the url. Here is what I get in that case:
https://[SITE]/[PROCESSOR]?c=1&t=ujqn0J1spbRvRlS&e1=Y&e2=N
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 7 months ago #172911
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Automatically load URL with Expression Manager
Create the URL in a Equation-Question and only put the questioncode of the Equation-Question in the EndURL.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- cberghoff
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 7 months ago #172913
by cberghoff
Replied by cberghoff on topic Automatically load URL with Expression Manager
Well, that is a solution I'll try out. However, is this an error in version 3? I used to automatically direct all the time with version 2 and never had a problem!
The topic has been locked.
- LouisGac
- Visitor
5 years 7 months ago #172914
by LouisGac
Replied by LouisGac on topic Automatically load URL with Expression Manager
yes it seems we have some problems with end url.
I'll do a complete check of it next week.
I'll do a complete check of it next week.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 7 months ago #172915
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Automatically load URL with Expression Manager
I have seen issues in all versions from time to time.
The content of {CONSENT}{E1}{E2} might look fine, when rendered in the browser/html view, but contain more than just the character you see.
As long as I don't have a demo file, I can only guess what the content is.
The content of {CONSENT}{E1}{E2} might look fine, when rendered in the browser/html view, but contain more than just the character you see.
As long as I don't have a demo file, I can only guess what the content is.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- cberghoff
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 7 months ago #172916
by cberghoff
Replied by cberghoff on topic Automatically load URL with Expression Manager
I just put the questions in to the demo platform
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 7 months ago #172917
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Automatically load URL with Expression Manager
I have tested with version 3.14.6 and placing Expression Manager variables directly in the End URL works as expected.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: LouisGac
The topic has been locked.
- cberghoff
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
- Thank you received: 1
5 years 7 months ago #172918
by cberghoff
Replied by cberghoff on topic Automatically load URL with Expression Manager
My installation hadn't told me there was a new version. Let me update and see if that takes care of it!
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
5 years 7 months ago - 5 years 7 months ago #172919
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Automatically load URL with Expression Manager
...and when I exported your survey from the demo site it works as expected on my server.
(I did not activate tokens so that value is null)
(I did not activate tokens so that value is null)
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 5 years 7 months ago by tpartner.
The following user(s) said Thank You: LouisGac
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 7 months ago #172920
by jelo
Is there something special about your tokens?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Automatically load URL with Expression Manager
I have tested your survey on demo.limesurvey.org (Version 3.14.5). Looks fine to me. Was linked to your website with correct URL and parameters.cberghoff wrote: My installation hadn't told me there was a new version. Let me update and see if that takes care of it!
Is there something special about your tokens?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.