Welcome to the LimeSurvey Community Forum

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

Include original URL-parameters in link to restart survey on error page

  • WWeichselberger
  • WWeichselberger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206760 by WWeichselberger
I use two URL-Parameters in order to prefill two answers, as described here:
manual.limesurvey.org/Panel_integration

Now, I want to change the error page template (layout_errors.twig) to include a link to restart the survey. However, I do need to include the two URL-parameters that where provided at the start of the survey.

How can I do that? Are these URL-parameters available in the template engine?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206767 by tpartner
If you load questions via URL parameters, you can access the values of those questions in the TWIG files like this:

Code:
{{ processString('{qCode.shown}') }}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, WWeichselberger
The topic has been locked.
  • WWeichselberger
  • WWeichselberger's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #206823 by WWeichselberger
Thank you @tpartner for the quick answer!

Could you also provide me with a pointer to the respective manual or documentation? I could not find it anywhere.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 6 months ago #206837 by DenisChenu
It's in manual : manual.limesurvey.org/Theme:Available_function

But clearly : manual about twig and theme must bve improved

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.
The following user(s) said Thank You: WWeichselberger
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose