Skip to content
MyAppBuilder
StableFormsVersion 1

Number

Overview

A numeric field with a stepper and a numeric keyboard on phones. Validates that the value is within your minimum and maximum.

When to use

  • Quantity ordered
  • Number of guests or rooms
  • Mileage, hours worked, square metres
  • A score or priority from 1 to 5

When not to use

  • Money: use Currency, which formats with the right symbol and 2 decimals
  • A value picked by sliding within a range: use Slider
  • Phone numbers or postcodes: they are text, use Phone or Text Input

Quick start

  1. Add a Number inside a Form
  2. Set Label and the Field key of a Number or Decimal field
  3. Set Minimum, Maximum and Step (for example 1 for whole units, 0.5 for half hours)
  4. Turn on Required if a value is mandatory

Properties

Labeltext (bindable)

The caption shown above the field. Keep it short and specific ("Work email", not "Email 2"). It is also read by screen readers and used in automatic error messages.

Default: Number

Example: Delivery address

Field keytext

The key this value is saved under when the form is submitted. To save into an entity field, use that field's key exactly (lowercase, underscores). Inputs without a key are not included in the saved record.

Default: number

Example: phone_number

Two inputs with the same key overwrite each other. Keys must start with a letter and contain only lowercase letters, digits and underscores.

Placeholdertext (bindable)

Grey example text shown inside the empty field. It disappears as soon as the visitor types, so never use it instead of a label.

Example: e.g. +1 555 0100

Help texttext (bindable)

A short hint shown under the field until a validation error replaces it. Use it for format expectations or why you ask for the information.

Example: We only call about your order.

Default valuetext (bindable)

The value the field starts with. It is included when the form is submitted even if the visitor never touches the field. Bind it to pre-fill the number from the current user, a page parameter or the current record.

Example: 1

Requiredboolean

Blocks submission while the field is empty and shows a red asterisk next to the label. The message is “<Label> is required” unless you set a Validation message.

Default: false

Read onlyboolean (bindable)

Shows the value but prevents editing. Useful for values you pre-fill and want the visitor to see but not change. Bind it to make a field editable only for some roles or statuses.

Default: false

Disabledboolean (bindable)

Greys the field out and skips it from keyboard navigation. Bind it to a condition such as “Status is Closed” to lock a field in context.

Default: false

Minimumnumber

Smallest value accepted. The browser also stops the stepper below it.

Example: 0

Maximumnumber

Largest value accepted. The browser also stops the stepper above it.

Example: 1000

Stepnumber

Increment of the up/down arrows and the granularity accepted. Use 1 for whole numbers, 0.01 for two decimals.

Default: 1

Example: 0.5

Data binding

Saved as a number (empty stays empty, not 0). Matches Number, Decimal and Currency fields. KPIs and charts can sum or average it.

Properties that can use dynamic data: Label, Placeholder, Help text, Default value, Read only, Disabled.

Events

On change
Runs every time the number changes. The new value is available as Event → value. Typical uses: Set State to drive a filter or a visibility rule, Show Toast for instant feedback. Avoid slow actions (API calls) on every keystroke.
On focus
Runs when the visitor enters the field (click or Tab). Useful for showing contextual help or opening a drawer with instructions.
On blur
Runs when the visitor leaves the field. A good moment to run lookups (e.g. fetch customer details once an email is complete) because it fires once instead of on every keystroke.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Other components can read this component's value from the Data Picker → Component state.

Responsive behavior

Uses 6 of 12 columns by default. In the Responsive tab you can change visibility, span, dimensions, padding, margin, font, order, alignment, direction separately for tablet and mobile.

Permissions

Use the Permissions tab to show this component only to some roles. Hiding a component is a convenience, not security — the server always checks who may read or change data.

Examples

Quantity between 1 and 100

Example
Label: Quantity
Field key: quantity
Minimum: 1 · Maximum: 100 · Step: 1
Default value: 1
Required: on

Common patterns

  • Minimum 0 to prevent negative quantities
  • Step 0.25 for time entries in quarter hours

Troubleshooting

“Must be at least…” appears although the value looks fine

Why: Minimum/Maximum compare numeric values for this input

Fix: Check the Minimum/Maximum you set; leave them empty for no limit

Decimals are rejected

Why: Step is 1

Fix: Set Step to 0.1 or 0.01

Related

Was this helpful?