- Posts: 8
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Passthrough field displays as undefined variable
- hano
- Topic Author
- Offline
- New Member
Less
More
8 years 2 months ago #131810
by hano
Passthrough field displays as undefined variable was created by hano
Hi
I am trying to use a passthrough variable in my templates for the URL the user should go to when they close the survey.
Setup:
parent_url is a url parameter in Panel Integration, and {PASSTHRU:parent_url} is set in the End URL field.
Result:
If I use {URL} or {PASSTHRU:parent_url} in my template it renders as
Is this a bug?
Thanks
I am trying to use a passthrough variable in my templates for the URL the user should go to when they close the survey.
Setup:
parent_url is a url parameter in Panel Integration, and {PASSTHRU:parent_url} is set in the End URL field.
Result:
If I use {URL} or {PASSTHRU:parent_url} in my template it renders as
Code:
<span class='em-expression em-haveerror'><span title='Undefined variable' class='em-error'><span title='Undefined variable' class='em-var em-var-error' >PASSTHRU</span></span> : <span title='Undefined variable' class='em-error'><span title='Undefined variable' class='em-var em-var-error' >parent_url</span></span></span>
Is this a bug?
Thanks
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
8 years 2 months ago - 8 years 2 months ago #131813
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 Passthrough field displays as undefined variable
You need to create a question to store parent_url. Then use that question code as the End URL.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 2 months ago by tpartner.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13642
- Thank you received: 2491
8 years 2 months ago - 8 years 2 months ago #131838
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Passthrough field displays as undefined variable
Hi,
If i remind PASSTHRU: can be used in end url only : manual.limesurvey.org/URL_fields#Passthr...rvey_2.x_or_later.29
I don't use a lot PASSTHRU, because there are better solution : manual.limesurvey.org/URL_fields#Prefill...using_GET_parameters + manual.limesurvey.org/URL_fields#Expressions . But there are surely a bug here : PASSTHRU is maybe, never set in EM.
Here : you don't use PASSTHRU
@hano : can you test if PASSTHRU work even if it show error ?
If yes : please fill a bug report.
If i remind PASSTHRU: can be used in end url only : manual.limesurvey.org/URL_fields#Passthr...rvey_2.x_or_later.29
I don't use a lot PASSTHRU, because there are better solution : manual.limesurvey.org/URL_fields#Prefill...using_GET_parameters + manual.limesurvey.org/URL_fields#Expressions . But there are surely a bug here : PASSTHRU is maybe, never set in EM.
Here : you don't use PASSTHRU
@hano : can you test if PASSTHRU work even if it show error ?
If yes : please fill a bug report.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 8 years 2 months ago by DenisChenu. Reason: Here : you don't use PASSTHRU
The topic has been locked.
- hano
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 1
8 years 2 months ago - 8 years 2 months ago #131881
by hano
Thanks, I did that and now {URL} works as expected.
Replied by hano on topic Passthrough field displays as undefined variable
tpartner wrote: You need to create a question to store parent_url. Then use that question code as the End URL.
Thanks, I did that and now {URL} works as expected.
Last edit: 8 years 2 months ago by hano. Reason: It wasn't clear what answer I was referring to, so I added a quote
The topic has been locked.
- hano
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 1
8 years 2 months ago #131890
by hano
I have filed a bug report bugs.limesurvey.org/view.php?id=10546
Replied by hano on topic Passthrough field displays as undefined variable
DenisChenu wrote: Hi,
If i remind PASSTHRU: can be used in end url only : manual.limesurvey.org/URL_fields#Passthr...rvey_2.x_or_later.29
I don't use a lot PASSTHRU, because there are better solution : manual.limesurvey.org/URL_fields#Prefill...using_GET_parameters + manual.limesurvey.org/URL_fields#Expressions . But there are surely a bug here : PASSTHRU is maybe, never set in EM.
Here : you don't use PASSTHRU
@hano : can you test if PASSTHRU work even if it show error ?
If yes : please fill a bug report.
I have filed a bug report bugs.limesurvey.org/view.php?id=10546
The following user(s) said Thank You: DenisChenu
The topic has been locked.