- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Zugriff auf theme options in custom.js
- normanhealthvision
- Topic Author
- Offline
- New Member
Less
More
2 years 6 months ago - 2 years 6 months ago #220223
by normanhealthvision
access theme options in custom.js was created by normanhealthvision
hi there,
I wonder how to access the theme options within the theme's js. In twig, it's available via
, but how to access in js?
The idea behind is, that I want to turn on/off specific behavior when clicking on a answer option - depending on what's set in theme options.
thanks & regards
LS Cloud Version 3.27.16
I wonder how to access the theme options within the theme's js. In twig, it's available via
Code:
aSurveyInfo.options
The idea behind is, that I want to turn on/off specific behavior when clicking on a answer option - depending on what's set in theme options.
thanks & regards
LS Cloud Version 3.27.16
Last edit: 2 years 6 months ago by normanhealthvision. Reason: add ls version
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12888
- Thank you received: 3965
2 years 6 months ago - 2 years 6 months ago #220226
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic access theme options in custom.js
Hallo,
dies ist der deutsche Teil des Forums.
Daher schreibe bitte auf Deutsch, oder nutze den englischen Teil.
This is the German part of the forum.
So, either write German or use the English part.
dies ist der deutsche Teil des Forums.
Daher schreibe bitte auf Deutsch, oder nutze den englischen Teil.
This is the German part of the forum.
So, either write German or use the English part.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 6 months ago by Joffm.
The topic has been locked.
- normanhealthvision
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
2 years 6 months ago #220227
by normanhealthvision
Replied by normanhealthvision on topic Zugriff auf theme options in custom.js
Huch,
deutsch, natürlich:
Ich möchte im JS meines Themes auf die (custom) Optionen zugreifen, die in den Theme-Options gesetzt werden können. Auf diese Weise möchte ich das Verhalten beim Klick auf eine Antwortoption steuern.
Im twig ist der Zugriff über aSurveyInfo.options möglich, doch wie komme ich im JS an die Einstellung(en) heran?
Besten Dank
deutsch, natürlich:
Ich möchte im JS meines Themes auf die (custom) Optionen zugreifen, die in den Theme-Options gesetzt werden können. Auf diese Weise möchte ich das Verhalten beim Klick auf eine Antwortoption steuern.
Im twig ist der Zugriff über aSurveyInfo.options möglich, doch wie komme ich im JS an die Einstellung(en) heran?
Besten Dank
The topic has been locked.
Moderators: Joffm