Radio group

This component enables exactly one option to be selected in a group of options.

Configuration

For general configuration options, see General component configuration.

Specific configuration

options (array)

List of clickable elements from which exactly one element is selected.

value (id-string/number)

Id of the element that is currently selected.

value (id-string/number)

Id of an element within the list of options of the radio group. The id can be a string or a number, among other things.

Example

radiogroup.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "Radiogroup Component Example",
      "components": [
        {
          "type": "radiogroup",
          "value": "/data/radioGroup",
          "label": {
            "de": "Radio Gruppe",
            "en": "Radio group"
          },
          "options": [
            {
              "value": 1,
              "label": {
                "de": "Eins",
                "en": "one"
              }
            },

            {
              "value": 2,
              "label": {
                "de": "Zwei",
                "en": "two"
              }
            },

            {
              "value": 3,
              "label": {
                "de": "Drei",
                "en": "three"
              }
            }
          ]
        }
      ]
    }
  ],
  "state": {
    "data": {
      "radioGroup": 2
    }
  }
}
Embedded preview

Keywords: