Type key: number_input. Renders a field that accepts only a number. In the editor this is the Number block.
A question: the question rules apply, and it can sit in a layout row column.
Meta fields
Section titled “Meta fields”The meta fields of this node type are listed in the request body of Replace the draft document, under pages › nodes, in the number_input tab.
Example
Section titled “Example”{ "public_id": "nGst", "sort_order": 1, "type": "number_input", "meta": { "question": "<span>Number of guests</span>", "placeholder": "0", "validation": { "required": true } }}Defaults and rules
Section titled “Defaults and rules”default_valueis a number, not a string.number_styleisclassic(a plain field) orstepper(a field with buttons).number_button_iconpicks the stepper icons:chevronsorplus_minus.nullkeeps the editor default for both.number_minmaxsets the accepted range.nullaccepts any number.number_stepis the stepper increment;nullsteps by 1. Withnumber_whole_onlyon, a fractional step is refused on write with400 INVALID_INPUTatmeta/number_step.- Settings that cannot all hold, such as
mingreater thanmaxor adefault_valueoutside the range, are accepted on write and reported at publish asFORM_PUBLISH_NUMBER_SETTINGS_INVALID.