Toloka documentation

Number input field

To add a number input field, use the field.number component.

Integer validation

By default, this field can contain decimal numbers. To enter integers, use validation:

"validation": {
  "type": "condition.schema",
  "schema": {
    "type": "integer"
  "hint": "Enter an integer"

Prohibit negative numbers

By default, you can enter both positive and negative numbers in this field. To prohibit negative numbers, use the minimum property:

"minimum": 0