Number Field

Allows for storage of numeric values

Options#

  • Min value – Numbers entered must be greater than this value if set.

  • Max value – Numbers entered must be less than this value if set.

  • Decimal points – The number of decimal points allowed if set.

Use#

If the field has a min value set, and the user enters a value less than the min value, the entry will not be update-able until a larger number is entered

If the field has a max value set, and the user enters a value greater than the max value, the entry will not be update-able until a smaller number is entered

If the user attempts to enter a value that is not a number, the entry will not be update-able until a legitimate number is entered.

Template Use#

Access your number fields via the handle you set for the field and get the number by calling it directly

<p>We have {{ entry.yourNumberFieldHandle }} in stock!</p>