Range slider field

Use range_slider to collect a number within a range. The respondent chooses a value with a slider.

For shared field properties, see Shared field properties.

Configuration

NameTypeRequiredDefaultDescription
minnumberYesn/aSets the left end of the slider. Any number.
maxnumberYesn/aSets the right end of the slider. Must be greater than min.
stepnumberNo1Sets the distance between slider positions. Must be greater than 0 and no larger than max minus min.
defaultValuestringNononeSets the initial value. Write a number as a string, or use "{{hidden_name}}". The string is parsed as a number.

Validation

If the field is required and has no value, the respondent cannot leave the page. The slider cannot move outside the range from min to max.

Submission value

The answer is stored as a number under the field’s name in submission data.

Example

{ "type": "range_slider", "name": "monthly_budget", "label": "What is your monthly budget (USD)?", "min": 0, "max": 5000, "step": 250, "defaultValue": "1000", "required": true }