1. Fields
  2. Number Field

Fields

Number Field

Captures numeric input in an action form. Useful for quantities, scores, counts, measurements, and calculations.

Basic usage

Adds a number field to the fields of an action. The max and min parameters can be used to define the range of numbers that can be entered. The step parameter can be used to define the increment or decrement value of the number.

loading...

Result

The field will be displayed as a number field in the form, as below:

The resultant data will be available in the stubpost.data as:

loading...

This can be substituted with eg. ~~stubpost.data.internet_speed where required.

Parameters

See fields for common field parameters like validation and conditional rendering.