Webhooks

HTML Forms Premium adds an action to let you connect your form data to an external service using a webhook. This feature helps unlock the base plugin in an incredible number of ways. You can send data from your visitors to third-party applications or your own internal software tools.

How to Create a Webhook Action

First, you’ll have to install HTML Forms Premium. Once that is complete, you’ll find a new button on the Actions tab of your form called Trigger Webhook. Pressing that button will reveal the window to build the webhook connection to your form.

Screenshot of HTML Forms Premium Webhook Action

As you can see in the screenshot, there are three fields in the webhook action.

Webhook URL

This is the destination URL that your form data will be sent to.

Content Type

Define what type of content will be sent to the webhook URL. Your choices are JSON or encoded form data.

Additional Headers

If your Webhook URL requires additional headers, like authorization, you can include that information here.

Sending Data to the Webhook

All data included in the form is sent to the webhook whenever this is a successful submission. It is sent in the format you chose in the Content Type field, to the address in your Webhook URL field, with any headers you included in Additional Headers. It is the responsibility of the service running at the Webhook URL to handle things from there.


Related Posts from Our Knowledge Base

Extend or modify the default behavior of the HTML Forms WordPress plugin with our set of available action hooks.

Check out our collection of simple code snippets you can use to get the most out of HTML Forms on your WordPress websites.