Prior to reading these instructions, see the information on the general features of questions in the PIEL Survey.
A slider question allows a participant to choose a response by moving a thumb slider horizontally.
The slider question is a way of gathering a numeric rating from 0 to 1. This type of question works well if there is a continuous range of potential answers rather than specific point answers.
To create a text box, use "%TYPE slider".
The following code created the question shown in the images below.
2|What percent of your lunch was green vegetables? %TYPE slider |0%|100%
The slider must be tapped or moved to move the the next question.
The "Next" button and right swipe capability will also then be enabled.
As the left and right anchor texts have limited space, care should be taken to make sure these texts are not too long.
The starting position of the slider is by default in the middle (a value of 0.5). This can be changed to left or right by using the "%OPTIONS" keyword followed by "left" or "right". For example, the following example sets the initial position to the left.
1|What percent of your diet is green vegetables? %TYPE slider %OPTIONS left|0%|100%
Slider questions do not show a default hint. A hint can be added by placing the keyword "%HINT" after the question text followed by the custom hint.
1|How useful was the conference to your work? %HINT Include the handout material as well %TYPE slider |Not useful|Very useful
Slider questions can be branched so participants are directed to a designated question or to the end of the survey. To direct them to a designated question, after "%TYPE slider" put "%NEXT" followed by the branching specification. The specification is a percent range (from 0-100) followed by the desired next question. For example "%NEXT 0-50:5". Multiple branching specifications can be set for a slider question. They should be separated by a comma. Note that branching is only allowed to later questions and that the ranges should not overlap (although they can share an endpoint).
In the following example, if the answer is between 0 and 0.5, the next question will be question 5. If the answer is greater than 0.5, the next question will be question 6.
3|How would you rate the activity? %TYPE slider %NEXT 0-50:5,50-100:6 |awful|fantastic
You can also branch to the end of the survey. In the following example, if the answer is greater than 0.5, the survey will end.
3|How would you rate the activity? %TYPE slider %NEXT 0-50:5,50-100:END |awful|fantastic
If you want to reverse the logic so that the next question is 5 if the answer is less than 0.5 (rather than less than or equal), you can reverse the order.
3|How would you rate the activity? %TYPE slider %NEXT 50-100:END,0-50:5 |awful|fantastic