Number Field

This component represents a number field.

Configuration

For general configuration options, see General component configuration.

Specific configuration

value (string)

Value of the field. The value should be set via Data binding the value should be bound via data binding.

Example

numberfield.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "Numberfield Component Example",
      "components": [
        {
          "type": "numberfield",
          "label": "My Numberfield",
          "value": "/data/numberfields/1"
        },
        {
          "type": "numberfield",
          "label": {
            "de": "Zahlenfeld",
            "en": "numberfield"
          }
        }
      ]
    }
  ],
  "state": {
    "data": {
      "numberfields": {
        "1": "42"
      }
    }
  }
}
Embedded preview

Keywords: