Skip to content

How do you enable Form tool? #29

@mlanders

Description

@mlanders

Having an issue getting forms to work with the Vue component. Does it need to be in display mode web, or is it supported in email?

The documentation show enabling forms as the following.

unlayer.init({
  tools: {
    form: {
      enabled: false
    }
  }
});

However when trying to enable it via the tools props it doesn't show up.

<EmailEditor ref="documentEditor" :options="options" :tools="tools" @load="editorLoaded" />

The following is from the example which also does not work.

      tools: {
        form: {
          properties: {
            action: {
              editor: {
                data: {
                  actions: [
                    {
                      label: "Marketing",
                      method: "POST",
                      url: "http://whatever.com/marketing-form-submission",
                    },
                    {
                      label: "Sales",
                      method: "POST",
                      target: "_blank",
                      url: "http://whatever.com/sales-form-submission",
                    },
                  ],
                },
              },
            },
          },
        },
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions