Hi, so to update, I think I've found the solution.
About demographic questions, with the group by group I can eventually have them 1 per page. However I think 2 per page is a good tradeoff since they are small questions.
Then, for the videos I have groups and each group contains 3 questions: video, slider, slider. Each of these groups are in the same randomization group so they are presented randomly
I've managed to:
- show video, until it's end
- then hide the video block
- and display the sliders (2 for now) I need
- the next button only displays after the user has moved both sliders (this is a workaround since if I make the sliders mandatory and the user press 'next' before setting them, the whole group is shown again, including the video, and I don't want the user to watch the video more than once)
this is the code I'm using and it's in the group's Description
Code:
<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>
the only potential issue is that I still don't get how to target correctly the blocks (eg video/slider) is JS. So for the ids (eg #question114 and #answer562798X17X115SQ001slid) I have to look them up from the developer tools and manually change the script for every new group I have.
Another thing which took me way to long to find in the cryptic options is how to
center the slider (and it still feels a bad hack). As per image below, I don't have a label (to the left of the slider). To center the slider I had to set the
Label column width at 25% and the
Text input box width at 50%. (I wish this was written somewhere in the manual)
Find a sample survey attached (I guess you will have to change the ids in the js code as described above)