# Forms Integration with Javascript

**URL:** <https://community.hubspot.com/t/forms-integration-with-javascript/46474>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [November 4, 2021, 1:38pm UTC](https://community.hubspot.com/t/forms-integration-with-javascript/46474 "2021-11-04T13:38:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DRousselin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/drousselin/32/75439_2.png) [@DRousselin](https://community.hubspot.com/u/DRousselin)\
**Post date:** [November 4, 2021, 1:38pm UTC](https://community.hubspot.com/t/forms-integration-with-javascript/46474/1 "2021-11-04T13:38:16Z")

</div>

Hello,  
I’m currently facing an issue with the Javascript of forms described here : [https://legacydocs.hubspot.com/docs/methods/forms/advanced\_form\_options](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options)

In fact, I’m trying to trigger the event onFormSubmitted but when I do that, it says that jQuery is required. In our solution, we don’t want to be dependant of jQuery, is there any new method to do that ? If not, do you have any recommendation to solve this problem ?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 4, 2021, 7:38pm UTC](https://community.hubspot.com/t/forms-integration-with-javascript/46474/2 "2021-11-04T19:38:41Z")

</div>

@DRousselin

Have you considered giving the [global form events](https://legacydocs.hubspot.com/global-form-events) a whirl?
