Range Field Element

A number range form control.

The Range Element displays a <input type="range"> HTML element, use it to allow users to enter a numeric value in a specified range which precise value, however, is not considered important.

Range Element


Settings

It inherits common settings with the following specifics:

SettingDescription
SizeThe field size applied with uk-form-{size} modifier.
WidthThe field width applied with uk-form-width-{width} modifier.
Common Settings
SettingDescriptionDynamic
LabelThe title for the field that represents the field data.
ControlThe name that identifies the field control within the form. It's required and must be unique for the Form Area.
ValueThe efault value for the field. The user can change it.
ReadonlyShould the field be read-only. Any default value will be unedible.
AutofocusShould the field will be autofocused as soon as the page loads. Only one field can be focused on each page.
Sync ID / ControlShould the field ID attribute obtain it value from the Control Name.

Validation

It inherits common validation with the following specifics:

ValidationDescriptionDynamicBrowser SideServer Side
MinThe minimum amount that the input value must constrain to, greater than or equal to.
MaxThe maximum amount that the input value must constrain to, lower than or equal to.
StepThe multiple of which the input value must constrain to.
Common Validation
ValidationDescriptionDynamicBrowser SideServer Side
RequiredDefines if the field must have a value.
Error MessageA message that will be displayed if the element validation fails. Optionally use {fieldlabel} as placeholder, it will be replaced with the field label.

Integration

  1. Access a Builder layout and create a Form Area.
  2. Add a Range Element from the Form Essentials group.
  3. Access the element settings and input a Control Name.
Previous
Upload