Skip to content
Join our Slack

Slider

Type key: slider. Renders a horizontal slider between slider_minmax.min and slider_minmax.max, moving in steps of slider_step. In the editor this is the Slider block.

A question: the question rules apply, and it can sit in a layout row column.

The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the slider tab.

A minimal Slider node
{
"public_id": "nSld",
"sort_order": 1,
"type": "slider",
"meta": {
"question": "<span>How many meetups have you attended?</span>",
"slider_minmax": {
"min": 0,
"max": 10
},
"slider_step": 1,
"validation": {
"required": false
}
}
}
  • The defaults are slider_step: 1, slider_minmax: { "min": 0, "max": 100 }, and slider_show_value: "hover".
  • slider_minmax.min and slider_minmax.max accept -1000 to 1000; slider_step accepts 0.0001 to 100.
  • slider_show_value sets when the chosen number is displayed: none, hover, or always.
  • default_value is a number; when the form renders it is clamped into the range.

Your next form could be the best-looking thing on your site.

Free forever. Unlimited responses. No signup to start.