Checkbox Group

These components generate a list of elements of the component Checkbox.

Configuration

For general configuration options, see General component configuration.

Specific configuration

components (array)

List of elements of the component Checkbox

value (string)

Value of a single checkbox within the component list. See also Specific configuration checkbox.

Example

checkboxgroup.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "Checkboxgroup Component Example",
      "components": [
        {
          "type": "checkboxgroup",
          "label": {
            "de": "Checkbox Gruppe",
            "en": "checkbox group"
          },
          "components": [
            {
              "value": "/data/checkboxGroup/one",
              "type": "checkbox",
              "label": {
                "de": "Eins",
                "en": "one"
              }
            },

            {
              "value": "/data/checkboxGroup/two",
              "type": "checkbox",
              "label": {
                "de": "Zwei",
                "en": "two"
              }
            },

            {
              "value": "/data/checkboxGroup/three",
              "type": "checkbox",
              "label": {
                "de": "Drei",
                "en": "three"
              }
            }
          ]
        }
      ]
    }
  ],
  "state": {
    "data": {
      "checkboxGroup": {
        "one": true,
        "two": false,
        "three": true
      }
    }
  }
}
Embedded preview

Keywords: