setFormConfig

Diese Funktion ersetzt die aktuelle Formularkonfiguration mit der angegebenen Formularkonfiguration.

Übersicht

action ("setFormConfig")

Auszuführende Aktion.

payload (FormConfig)

Zu setzende Formularkonfiguration.

Beispiel

setFormConfig.json
{
  "$schema": "https://forms.virtimo.net/5.1.0/schema.json",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "components": [
        {
          "type": "button",
          "label": "setFormConfig",
          "onClick": {
            "action": "setFormConfig",
            "payload": {
              "metaData": {
                "id": 0,
                "version": 0
              },
              "configuration": {
              },
              "components": [
                {
                  "type": "container",
                  "components": [
                    {
                      "type": "html",
                      "value": "This is a new Form"
                    }
                  ]
                }
              ]
            }
          }
        }
      ]
    }
  ]
}
Eingebettete Vorschau

Keywords: