Skip to content

Number Field

A numeric input with arrows.

Settings:

SettingWhat it does
Min valueLower bound
Max valueUpper bound
Allow negativeWhether a minus sign is accepted
PlaceholderGrey hint inside an empty field
WidthShare of the row, in percent
DefaultWhat a new record starts with
RequiredAn empty value blocks saving

Output:

html
<span class="price">{$price}</span>

Bounds are a hint, not a guarantee

They constrain the input in the manager. A row written through the REST API, a seed or an import is not checked against them — validate on the way in if the number has to stay within range.

© PageBlocks 2019-present