- Posts: 30
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
I am no expert in JS, so you need to wait for someone like Tpartner to show up.Back to the previous step..is there a way to target (maybe through an id?) the slider in js? I've managed to target the whole block (which is good) with something like $('#question115') where the number 115 is different for each question..but I'm wondering if there's another better way?
I mean, everyone would get so bored byt scrolling pages with 1 single question
Yes, there is, WHEN an answer is selected.Perhaps there's a way to automatically trigger the next page when an answer is selected?
This is probably due to the low frustration tolerance of the youth.I find it so frustrating ...
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Hide the "Next" button $('#ls-button-submit').hide(); $('#question115').hide(); $('#question130').hide(); var vid = document.getElementById("myvideo"); vid.volume = 0.7; vid.onended = function() { // Hide video //$(this).hide(); $('#question114').hide(); // Show sliders $('#question115').show(); $('#question130').show(); // Show the "Next" button var enableNext1 = false; var enableNext2 = false; var v = $('#answer562798X17X115SQ001slid').change(function() { enableNext1 = true; if(enableNext2) $('#ls-button-submit').show(); // if also the second one was moved }); var v = $('#answer562798X17X130SQ001slid').change(function() { enableNext2 = true; if(enableNext1) $('#ls-button-submit').show(); //if also the first one was moved }); } //onended }); </script>