Send Event

Component that can be included to initiate an event on Document.

Uses

To make page dynamic, include it with the following specifications:

Properties

  • event: The name of the event to trigger.
  • detail: Any CustomEvent property.

Example

{
  "component_name": "form_builder",
  "pages": [
    {
      "header": "Send an event",
      "instructions": "",
      "fields": [
        {
          "id": "test",
          "event": "send_event",
          "detail": {
            "id": "some_id",
            "content": "some content"
          }
        }
      ]
    }
  ],
  "data_token": {}
}