- Posts: 13
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Pass custom variables to the survey template
- prajay04
- Topic Author
- Offline
- New Member
Less
More
4 years 6 months ago - 4 years 6 months ago #189589
by prajay04
Pass custom variables to the survey template was created by prajay04
Hello,
I am trying to display some extra values in my theme file.
These are some images and text content which will be different for each survey.
eg. {{ aSurveyInfo.additional_params.image_1 }}
How do i pass these variable so i can access them in my theme file. As per above eg. how can i pass additional_params to theme file without editing core file code
I am using LimeSurvey Version 3.17.17
I am trying to display some extra values in my theme file.
These are some images and text content which will be different for each survey.
eg. {{ aSurveyInfo.additional_params.image_1 }}
How do i pass these variable so i can access them in my theme file. As per above eg. how can i pass additional_params to theme file without editing core file code
I am using LimeSurvey Version 3.17.17
Last edit: 4 years 6 months ago by prajay04.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
4 years 6 months ago #189631
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 Pass custom variables to the survey template
You can access ExpressionScript (ExpressionManager) variables inside TWIG templates via processString.
E.g.
E.g.
Code:
{{ processString("{TOKEN}") }}
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
4 years 6 months ago #189670
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 Pass custom variables to the survey template
Even in old system i use {QCODE.NAOK} in template …
Then you can use {{ processString("{QCODE.NAOK}") }} in 3.X theme.
Then you can use {{ processString("{QCODE.NAOK}") }} in 3.X theme.
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 topic has been locked.