Dot All Lisbon – the official Craft CMS conference – is happening September 23 - 25.
Range Fields
Range fields give you a range input that allows authors to set a number using a visual slider or a number input.
Settings
url="https://my-craft-project.ddev.site/admin/settings/fields/new"
:link="false"
:max-height="500"
caption="Adding a new range field via the control panel.">
Range fields have the following settings:
- Min Value — The lowest number that may be accessed using the slider or entered manually.
- Max Value — The highest number that may be accessed using the slider or entered manually.
- Step Size — The permitted granularity, mapped to the
step
attribute of the resultingrange
andnumber
inputs. - Default Value — An initial value for the input, on new elements.
- Suffix Text — A string to include after the number input.
Development
Working with range field values is identical to number fields.