StableField type
Number
Overview
Whole or decimal numbers: quantities, counts, scores, measurements.
Purpose
Use it for anything you add up, compare or chart. Values are stored as real numbers, so sorting and KPIs (sum, average, min, max) work correctly.
Inputs
- Fits the Number input, Slider and Rating Input. Validation: Minimum / Maximum value.
Configuration
- Options on every editable field: Required, Unique (no duplicates) (checked case-insensitively against existing records), Description (shown to teammates and the AI), a default value and a custom validation message that replaces the standard one.
- Typed values may contain spaces, commas or currency symbols — they are stripped before validation.
- Choose Decimal for amounts that should always show two decimals, Currency for money.
Outputs
- Stored with up to 6 decimal places. Displayed with the app's locale (thousand separators, decimal comma or point).
Example
Quantity
Example
Field: Quantity · Type: Number · Minimum value: 1 · Default value: 1 Example value: 12
Errors
- “Quantity must be a number” — text that cannot be read as a number.
- “Quantity must be at least 1” / “… at most 500” — min/max rules.
Limitations
- No units or formatting options per field; add the unit in the label (“Weight (kg)”).
- An empty value is stored as empty (null); a Required field rejects it with “<Label> is required”.
Advanced
- Coercion:
Number(String(value).replace(/[, $€£]/g, "")), rounded to 6 decimals; non-finite values are rejected. Aggregates run server-side over numeric values only.