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 Form Component Attributes

Example

datefield.json
{
  "$schema": "https://forms.virtimo.net/4.2.x/schema.json",
  "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: