The Number field allows content writers to enter or select a number. You can set set max and min values for the number.

 

Configuration

Assign the Number field a Field name, API ID, and Field placeholder that will display in the entry editor. 

You can use the JSON editor to set a max and min value for the number as shown below.

 

JSON Editor

The following allows you to input any number:

"number": {
  "type": "Number",
  "config": {
    "label": "Number",
    "placeholder": "Enter a number..."
  }
}

 

The following defines a minimum and maximum for the number:

"number": {
  "type": "Number",
  "config": {
    "label": "Number",
    "min": 10,
    "max": 20
  }
}

 

JSON Reference 

"type": (string, required) Value must equal "Number"

"config": (object, optional) Options listed below
 

config

"placeholder": (string) Sets a user-friendly placeholder into the field

"label": (string) Sets the label that shows up for the field in the entry editor

"min": (integer) Sets the minimum allowable value for the number

"max": (integer) Sets the maximum allowable value for the number

Did this answer your question?