Number Field

A number input. Good for number values such as page weight, amounts, counters etc.

Settings

Basic

  • Name: The human-friendly name of this field.
  • Data Key: The field name in published data. It must be in UpperCamelCase.
  • Description: The description of this field, should be a human-friendly text shown for content editor.
  • Hidden: Hide this field from the template. Used to create document with hidden default values. It is recommended that put this field to bottom.

Options

  • Precision: The precision of input value, empty means no precision restriction.
  • Step: The number to which this field is increased or decreased. It can be an integer or decimal.

Validation

  • Required: The field is required.
  • Min: Restrict min of input number.
  • Max: Restrict max of input number.

Default

The default value of this field when create a new document based on this template.

Publish

Data Key is set as totalCount and input 1234 to this field.

JSON data

The value of this field will be published as a number.

{
    "totalCount": 1234
}

GraphQL API

The value of this field will be published as a number.

{
    "totalCount": 1234
}
Last Updated: