Welcome to the LimeSurvey Community Forum

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

Passthrough field displays as undefined variable

More
8 years 2 months ago #131810 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
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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago - 8 years 2 months ago #131813 by tpartner
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago - 8 years 2 months ago #131838 by DenisChenu
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.

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.
More
8 years 2 months ago - 8 years 2 months ago #131881 by hano

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.
More
8 years 2 months ago #131890 by hano

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.

Lime-years ahead

Online-surveys for every purse and purpose