Java Script in Questions not working

Plus d'informations
il y a 1 mois 1 semaine #176280 par lemmon
lemmon a créé le sujet : Java Script in Questions not working
Hello LimeSurvey Community

I am new here, and also have become more active with LS recently. Great tool, thanks so much for this.


Now my question: I am trying to implement a consent forum at the beginning of my survey, and tried this:
www.limesurvey.org/forum/can-i-do-this-w...if-consent-not-given


Unfortunately, it does not work. I tried some variations to no avail. I have disabled "Filter HTML for XSS" in general settings. Then I downloaded the "Default Values In One Scale Of A Dual-scale Array Question" from here:
manual.limesurvey.org/Workarounds:_Manip...s_in_array_questions

This doesn't work either. The following example works:

<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete',function() {
alert("Test!");
});
</script>

Any ideas why the consent script above doesn't work, and neither the default value example above? I am on version 3.14.10+180924, tried both Chrome and IE.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 1 semaine #176284 par tpartner
tpartner a répondu au sujet : Java Script in Questions not working
Both of the scripts you tried are for a LimeSurvey version more than 4 years old.

What exactly are you trying to do?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 1 semaine #176313 par jelo
jelo a répondu au sujet : Java Script in Questions not working

lemmon écrit: implement a consent forum

forum? Or form?

With the current LS 3.X version you can use the privacy data policy feature.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Pièces jointes :
Les utilisateur(s) suivant ont remercié: lemmon

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 1 semaine #176329 par lemmon
lemmon a répondu au sujet : Java Script in Questions not working
Thank you for your response, tpartner. I will study the js differences between the versions. I was trying to implement a consent solution based on the first link in my post.

Jelo, many thanks for bringing to my attention that LS3 now has consent functionality built it. This is exactly what I need, and for now I will use that.

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!