# Global Form Events - where do you edit the code?

**URL:** <https://community.hubspot.com/t/global-form-events-where-do-you-edit-the-code/93069>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [November 1, 2023, 4:01pm UTC](https://community.hubspot.com/t/global-form-events-where-do-you-edit-the-code/93069 "2023-11-01T16:01:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjchef](https://avatars.discourse-cdn.com/v4/letter/r/96bed5/32.png) [@rjchef](https://community.hubspot.com/u/rjchef)\
**Post date:** [November 1, 2023, 4:01pm UTC](https://community.hubspot.com/t/global-form-events-where-do-you-edit-the-code/93069/1 "2023-11-01T16:01:22Z")

</div>

Hi, if I wanted to add a trigger within an onFormSubmit function on specific submitted form IDs, where do I add to this code on HubSpot?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 2, 2023, 9:39pm UTC](https://community.hubspot.com/t/global-form-events-where-do-you-edit-the-code/93069/2 "2023-11-02T21:39:34Z")

</div>

Hey, @rjchef 👋 Thanks for your question. Welcome to the community!

To clarify, are you asking where you’d add your custom JS to the form embed code itself? Or where via the page editor or design manager would you add additional JS to your page, blog, or template itself?

Best,

Jaycee
