Range Field

Pick a number with a slider.

The Range field picks a number by dragging a slider: a percentage, a rating, an opacity.

Configuration

Go to Modern Fields > Fields groups and add the Range field. Its settings are in the inspector:

Effect
Minimum valueThe lowest number of the slider.
Maximum valueThe highest number of the slider.
StepThe increment step of the slider. 1 by default.
Show marksDisplays marks along the slider.
The Range field settings

Display the value

The field stores the number. Read it with get_field():

PHP

Toggle Field


In this documentation