Checkbox Group

This component generates a list of Checkbox component elements.

Configuration

For general configuration options, see General Component Configuration.

Specific Configuration

components (array)

List of Checkbox component elements

value (string)

Value of a single checkbox within the component list. See also Specific Configuration for Checkbox.

Example

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