We are totally new to LimeSurvey and have a question about using javascript.
We found an example on how to use javascript and when we had version 2.05 we could go to configuration and switch the HTML to XSS setting to "no". We are now using 2.06 and when we try to change it to "no" it reverts back to "yes" and we are not able to set it.
Is there something we are missing?
Also, when we put javascript code in the source of a question it seems to work but if we try to run a function that has been saved in template.js it doesnt seem to run it. Would that be related to the setting above?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Thanks for the quick reply.
We updated the code and that has fixed the HTML to XSS issue - Thanks
Will this solve the problem of being unable to run javascript in the template.js?
We seem to be able to run javascript included in the question but it didn't seem to work if we had the functions in the template.js
It should make no difference whether the JS is placed at the template.js or the question. Only when using placeholders like {QID} within the script, it will not work when being placed at the template because the placeholder refers to a certain question.
Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!