POST Forwarding Integrations 3.5.8+ Pro

Freeform includes a POST Forwarding feature, which allows your forms to automatically submit an extra POST to pass off submission data to an external API URL upon successful submit and validation of a form. This option is available for simpler and/or limited integrations as an alternative to our traditional Mailing List and CRM API integrations.

POST Forwarding Integrations

In order to use this feature, you'll need to be using the Freeform Pro edition, and be knowledgeable about the service or API you're passing the data off to (whether it's third party service or your own custom one), and how the data is handled on that end. It's possible that some services may require you take additional steps like including JS, setting cookies, etc inside your site templates. For that matter, we cannot provide any assistance with setting this up, aside from the basics.

The following settings are available to you for usage of this feature:

  • POST Forwarding URL
    • Provide the custom URL here to have the POST data of this form submitted to an external API.
  • POST Forwarding Error Trigger
    • Provide a keyword or phrase Freeform should check for in the output of the external POST URL to know if and when there’s an error to log, e.g. ‘error’ or ‘an error occurred’.

In addition to the data available for all fields of the form, the POST Forwarding feature will also include:

  • CSRF token
  • Submission ID (submission-id)
  • Submission Token (submission-token)
  • Submission Title (submission-title)
  • Submission IP Address (submission-ip)

TIP

While Freeform stores Email fields as an array (for the ability to collect more than 1 email per field), for ease of use with the POST Forwarding feature, it transforms Email field data from an array to a string when it passes off the data.


There is 1 complete implementation example below:

TIP

Did you know...

Solspace is not just a plugin company. We also build and maintain websites. In fact, we often help other developers with their website builds. Learn more about our second chair development services today.

Last Updated: 7/3/2020, 1:14:17 AM