- Posts: 2
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago #206760
by WWeichselberger
Include original URL-parameters in link to restart survey on error page was created 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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 6 months ago #206767
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 Include original URL-parameters in link to restart survey on error page
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
3 years 6 months ago #206823
by WWeichselberger
Replied by WWeichselberger on topic Include original URL-parameters in link to restart survey on error page
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13620
- Thank you received: 2488
3 years 6 months ago #206837
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 Include original URL-parameters in link to restart survey on error page
It's in manual :
manual.limesurvey.org/Theme:Available_function
But clearly : manual about twig and theme must bve improved
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.