Skip to main content

Number

A single-line number type input field that is validated to contain certain numbers only. The field.type property value is number (for conditionals).

​Settings

  • Choose if validation should allow negative numbers.
  • Optionally set Min/Max values.
    • You can set both, just one or neither.
  • Optionally set Min/Max character length.
    • You can set both, just one or neither.
  • Optionally set the number of decimals allowed.
  • Set the step number to set default increments when a user uses the browser up/down arrows to increase/decrease the value.

​Templating

PropertyDescription
field.minLengthThe minimum permitted length of the value.
field.maxLengthThe maximum permitted length of the value.
field.minValueThe minimum permitted numeric value, or null when unset.
field.maxValueThe maximum permitted numeric value, or null when unset.
field.decimalCountThe configured number of decimal places.
field.allowNegativeWhether negative values are permitted.
field.stepThe increment used by the number input.

​Resources