# Adding FORM ID Option to Webhooks

**URL:** <https://forum.mautic.org/t/adding-form-id-option-to-webhooks/23713>\
**Category:** Ideas and Feature Requests\
**Created:** [April 11, 2022, 9:04am UTC](https://forum.mautic.org/t/adding-form-id-option-to-webhooks/23713 "2022-04-11T09:04:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [April 11, 2022, 9:04am UTC](https://forum.mautic.org/t/adding-form-id-option-to-webhooks/23713/1 "2022-04-11T09:04:29Z")

</div>

My idea is:  
To add a parameter for Form ID to the Submit Form Webhook Option

I think these groups of people would benefit from this idea:  
Anyone who uses this feature

Why I think they would benefit from this idea:  
In the current environment this webhook sends every form submission to a specific destination. If an instance has multiple forms then every form submission gets passed to the endpoint. If there are multiple forms then a lot of data is passed through

Any code or resources to support this idea:

Are you willing to work on this idea?:  
Happy to test and help with documentation

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

---

<div class="post-metadata">

**Author:** ![entrepositive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/entrepositive/32/9645_2.png) [@entrepositive](https://forum.mautic.org/u/entrepositive)\
**Post date:** [January 13, 2023, 8:41pm UTC](https://forum.mautic.org/t/adding-form-id-option-to-webhooks/23713/2 "2023-01-13T20:41:20Z")

</div>

Using the global Webhooks, the JSON returned from the webhook sent on any form submission, gives me the Form ID in the body.

```auto
"body": {
"mautic.form_on_submit": [
  {
  "submission": {
    "id": 86,
    "someInfo": {
      "yada": "yada yada"
    }
  },
  "form": {
    "id": 14, <== **RIGHT HERE**
    "name": "Test Contact Form",
    "alias": "test_form",
    "category": [
    ]
  },
  "lead": {
    "id": "blah blah" ...

```

Inside an automation software like Zapier/n8n I can create a Switch or IF to handle multiple different form submissions.

But it’s also possible for an individual form to send its own webhook data. [See here](https://forum.mautic.org/t/new-onsubmit-action-for-standalone-forms-send-webhook/23797/5).

EP
