Range Slider
The Range Slider fieldtype allows the user to select numerical value. It is rendered as range HTML input type with some additional styling, allowing users to precisely select the value.
note
The following examples use a field named range_field
. This should be replaced with your field name.
- Twig
- Blade
{{ entry.range_field }}
{{ $entry->range_field }}
Variables
- Twig
- Blade
{{ entry.range_field.from }}
{{ entry.range_field.to }}
{{ $entry->range_field->from }}
{{ $entry->range_field->to }}
Parameters
- Twig
- Blade
{{ entry.range_field.parameters({decimal_place: '2', prefix: 'yes', suffix: 'yes'}) }}
{{ $entry->range_field->parameters(['decimal_place' => '2', 'prefix' => 'yes', 'suffix' => 'yes']) }}
info
See the ExpressionEngine Documentation for more information on the Range Slider fieldtype