field typesnumber

Number

A numeric input field with min, max, and step constraints.

Overview

The Number field renders an input[type=number] element that restricts input to numeric values. It supports integer and decimal values, configurable min/max bounds, and a step increment. Browser-native number spinners are shown.

For visual range selection (sliders), use the Range / Slider field instead. For calculated numeric values derived from other fields, use the Calculated Field.

Properties

PropertyTypeDefaultDescription
idstringUnique field identifier (UUID in the builder).
typestringnumberMust be "number".
labelstringHuman-readable label shown above the field or step heading.
requiredbooleanfalseWhen true, the form cannot submit without a value.
isHiddenbooleanfalseHides the field from respondents (may still store defaults).
isDisabledbooleanfalseRenders the field read-only.
instructionstringundefinedHelp text shown below the label (not the same as placeholder).
placeholderstringundefinedGhost text inside the control when empty.
validation.minnumberundefinedMinimum length (text) or minimum numeric value (number) or digit count (phone).
validation.maxnumberundefinedMaximum length, numeric bound, or digit count (phone).
validation.patternstringundefinedRegex the value must match.
validation.messagestringundefinedCustom error when validation fails.
conditionalRulesarrayundefinedShow this field when any rule matches another field's value.
logicobjectundefinedSimple visibility: depends_on + show_if_value.
reportingobjectundefinedAdmin submissions table: includeInTable, labelOverride, sortable, filterable.
integrationKeystringundefinedStable alias for external integrations instead of id.
analytics.metric_keystringundefinedOptional analytics metric identifier (rating, range, number).
analytics.weightnumber1.0Relative weight when aggregating scores.
validation.displayFormat"auto" | "english" | "nepali""auto"How numerals are displayed (locale-aware).

JSON Schema

{
  "type": "number",
  "label": "Age",
  "name": "age",
  "required": true,
  "placeholder": "Enter your age",
  "validation": {
    "min": 18,
    "max": 120
  },
  "step": 1,
  "allowDecimals": false
}

Common Use Cases

  • Age, quantity ordered, attendees, or years of experience
  • Budget caps, percentages, or scores typed explicitly
  • Dimensions, measurements, or inventory counts with min/max bounds
  • Votes, ratings expressed as digits, or ID-style numeric codes
  • Any strictly numeric answer where type validation beats free text