Welcome to the LimeSurvey Community Forum

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

Zugriff auf theme options in custom.js

More
4 years 1 month ago - 4 years 1 month ago #220223 by normanhealthvision
hi there,

I wonder how to access the theme options within the theme's js. In twig, it's available via 
Code:
aSurveyInfo.options
, 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
Last edit: 4 years 1 month ago by normanhealthvision. Reason: add ls version
The topic has been locked.
More
4 years 1 month ago - 4 years 1 month ago #220226 by Joffm
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.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The topic has been locked.
More
4 years 1 month ago #220227 by normanhealthvision
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 :)
The topic has been locked.
Moderators: holchJoffmtpartner

Lime-years ahead

Online-surveys for every purse and purpose