Date Field

This component represents a date field.

Configuration

For general configuration options, see General component configuration.

Specific configuration

value (date-string/string)

Value of the field. See also Binding attributes of form components

Example

datefield.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "Datefield Component Example",
      "components": [
        {
          "type": "datefield",
          "label": "My Datefield",
          "value": "2021-01-01"
        },
        {
          "type": "datefield",
          "label": {
            "de": "Datumsfeld",
            "en": "Datefield"
          },
          "value": "/data/datefields/two"
        }
      ]
    }
  ],
  "state": {
    "data": {
      "datefields": {
        "two": "2024-01-01"
      }
    }
  }
}
Embedded preview

Keywords: