setFormConfig

This function replaces the current form configuration Form configuration with the specified Form configuration.

Overview

action ("setFormConfig")

Action to be executed.

payload (FormConfig)

Form configuration to be set.

Example

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"
                    }
                  ]
                }
              ]
            }
          }
        }
      ]
    }
  ]
}
Embedded preview

Keywords: