Adding a Webhook that works like Freeform's POST Forwarding feature? #1361
-
I'm trying to add a Webhook integration to forward form submissions to Oracle Eloqua. I've created the webhook, set the URL, and added it to my test form. But, when I submit the form, I get this error:
I assume the error is because the response from Eloqua is not JSON. This is the response I see in my local API client: <script type='text/javascript'>
document.location.href = 'https://s61956.t.eloqua.com/e/DefaultFormSubmitConfirmation.aspx';
</script> I am attempting to migrate a project to Formie from Freeform. The lead form in this project currently uses Freeform's POST forwarding feature to send data to the same Eloqua form. I was hoping I could use Formie webhooks to accomplish the same thing, but is that not the case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
That's correct the Webhook integration currently expects a JSON response. Although the Webhook integration essentially otherwise acts like POST forwarding in Freeform. In addition, something like this won't typically be possible with Formie, because by default integrations are run via the queue. If you're wanting to redirect the user to another page, that won't really work in the context of a queue job, which might run after the actual form submission. There's no way to handle that apart from setting the redirect URL on the form, or implementing some module code to set the redirect URL (if this needs to be dynamic, and in context of the form, etc). |
Beta Was this translation helpful? Give feedback.
That's correct the Webhook integration currently expects a JSON response. Although the Webhook integration essentially otherwise acts like POST forwarding in Freeform.
In addition, something like this won't typically be possible with Formie, because by default integrations are run via the queue. If you're wanting to redirect the user to another page, that won't really work in the context of a queue job, which might run after the actual form submission.
There's no way to handle that apart from setting the redirect URL on the form, or implementing some module code to set the redirect URL (if this needs to be dynamic, and in context of the form, etc).