Single-line number input with step controls.
The number form field type provides a single-line input for numeric values, typically displayed with up/down step controls (spinner). It supports attributes such as minimum, maximum, and step values, allowing you to define numeric ranges and precision for user input.
| Property | Example | Adjustable | Mandatory | Description |
|---|---|---|---|---|
| type | number | (mandatory) must be number. | ||
| name | number | (mandatory) is the unique name of the field. | ||
| label | Number | (mandatory) (translatable) is the descriptive title of the field. | ||
| default | — | (optional) is the default value. | ||
| description | — | (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box. | ||
| class | text_area | (optional) is a CSS class name for the HTML form field. If omitted this will default to 'text_area'. | ||
| required | — | (optional) The field must be filled before submitting the form. | ||
| min | 1 | (mandatory) this value is the lowest on the list. | ||
| max | 40 | (mandatory) this value is the highest on the list. | ||
| step | 5 | (mandatory) each option will be the previous option incremented by this number, starting with the first value until the last value is reached. | ||
| onchange | — | (optional) Javascript that should run on changing of the value. | ||
| showon | — | (optional) show this field on the bases of the value in another field. https://joomla.stackexchange.com/a/17682/2166 |
Integrate, customize, and update this JCB Fieldtype with ease through JCB's flexible ecosystem.