New onSubmit Action for Standalone Forms: Send Webhook

My idea is: Add Webhook functionality to Standalone Form onsubmit Actions

I think these groups of people would benefit from this idea: Everyone who enjoys the versatility of standalone forms

Why I think they would benefit from this idea: Webhook being in its own regard an extremely versatile tool, adding this to the Standalone onsubmit functionality seems like a fantastic idea.

Any code or resources to support this idea: Hopefully a lot of the heavy lifting dev work is already done in the campaign Action send webhook.

Are you willing to work on this idea?: I’m full of ideas but my talents lie elsewhere, so I yield to experts on this. I would love to contribute coffee.

What skills and resources do you need to explore this further?

Hello @entrepositive,

If you want to do this today you can:

  1. Create a form with an action > Segment
  2. Use the segment to start a campaign
  3. Call the webhook from your campaign

I think that adding this functionality to the form is a “bad idea”.
Simply because it would become a synchronous action that would slow down the submission of the form.
Indeed, we would have to wait for the webhook to be properly executed before being able to display the confirmation message (or the switch to the thank you page).
Moreover, in the event of a no response, how should this be handled in Mautic? Do we have to call back later, if so when, according to which business rule, how many times?

The fact that this is managed asynchronously in a campaign is surely the best possible use case.

This is my feedback on your suggestion.

I hope to continue the discussion,


Hey @pierre_a ,

Thank you for the input. This is the kind of insight I couldn’t come up with myself at my current level of experience. I’ve learned something new today. Thanks!