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
3 years 11 months ago - 3 years 11 months 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: 3 years 11 months ago by normanhealthvision. Reason: add ls version
The topic has been locked.
More
3 years 11 months ago - 3 years 11 months 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: 3 years 11 months ago by Joffm.
The topic has been locked.
More
3 years 11 months 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