Number

Any number, e.g. 900900.09E+2 or 9.0E+2.

Properties

  • REQUIREDtypestring

    Value must be set to number.

Options

  • listarray

    A list of predefined values that the user may pick from. The array can include numeric values [1, 2] or objects [{value: 1, title: 'One'}, ...].

Validation

Learn more about validation

Input

{
  title: 'Current popularity',
  name: 'popularity',
  type: 'number'
}

Output

{
  "_type": "movie",
  "popularity": 12.5,
  ...
}

Gotcha

Never use number for storing a phone-number. Minimize pain down the road and use string instead.

Was this article helpful?