Hi,
here a few examples to make it less frustrating to move to the right side.
the cryptic options is how to center the slider (and it still feels a bad hack)
This is neither cryptic nor a hack. It is normal behaviour.
Remember that a slider question is based on a "multiple numerical input".
So it is obvious that the input field (which is only replaced by the slider) will be centered if you set the label width to 25% and the input width to 50% (25% remaining at the right)
You would have achieved the same with 17% and 67%, or 8% and 83%.
And for
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.
First you must not use the developer tools. These values are displayed in the GUI
Here you see the questionID and the groupID
and you know the surveyID.
But it is a lot easier.
Instead of placing the script in the group description, place it into the video question.
As you display the entire group it is rendered when the page is displayed
$(document).ready(function() {
If the video and the two slider question have question IDs in ascending order,
you may use the variables {SID}, {GID}, {QID} which give you the survey-, group- and questionID of the actual question (the video).
So with
var sID='{SID}';
var gID='{GID}';
var qID='{QID}';
var qID1=
+qID+1;
var qID2=
+qID+2;
sgq=sID+'X'+gID+'X'+qID;
sgq1=sID+'X'+gID+'X'+qID1;
sgq2=sID+'X'+gID+'X'+qID2;
you get the question IDs of the video question and the two following (slider) questions.
The "+" sign avoids that the addition is done arithmetically, not just a concatenating of text.
Now you may say:
Code:
// Hide slider block
$('#question'+qID1).hide();
$('#question'+qID2).hide();
and
Code:
// Hide video block
$('#question'+qID).hide();
// Show slider block
$('#question'+qID1).show();
$('#question'+qID2).show();
And the sgq gives you the full code of the questions like "985536X610X10701"
Joffm