Welcome to the LimeSurvey Community Forum

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

Token attribute values in LS3+ twig templates

  • Japser
  • Japser's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #189696 by Japser
Hi,
is there currently a way to access the current token attribute values in the twig template?
aSurveyInfo only contains the descriptions of the settings.

getAllTokenAnswers/getAllAnswers only show the content of the lime__survey_xxx table row, while the info is in the lime__token_xxx table
The topic has been locked.
More
4 years 5 months ago #189699 by jelo
You can access ExpressionScript (ExpressionManager) variables inside TWIG templates via processString.
E.g.
Code:
{{ processString("{TOKEN}") }}

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Japser
  • Japser's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #189704 by Japser
Ah yes! I was looking in the wrong direction! that works! thanks!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose