# Form error, Uncaught ReferenceError: hbspt is not defined

**URL:** <https://community.hubspot.com/t/form-error-uncaught-referenceerror-hbspt-is-not-defined/117772>\
**Category:** CMS Development\
**Tags:** forms\
**Created:** [October 7, 2024, 9:40am UTC](https://community.hubspot.com/t/form-error-uncaught-referenceerror-hbspt-is-not-defined/117772 "2024-10-07T09:40:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UArrobbio](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@UArrobbio](https://community.hubspot.com/u/UArrobbio)\
**Post date:** [October 7, 2024, 9:40am UTC](https://community.hubspot.com/t/form-error-uncaught-referenceerror-hbspt-is-not-defined/117772/1 "2024-10-07T09:40:01Z")

</div>

Uncaught ReferenceError: hbspt is not defined.

I receive this error from all the form that i have integrate in my website. [Preventivatore](https://www.comastridistribution.com/it/content/12-preventivatore)  
\<script charset=“utf-8” type=“text/javascript” src=“[//js-eu1.hsforms.net/forms/embed/v2.js](https://js-eu1.hsforms.net/forms/embed/v2.js)”\>\</script\>  
\<script\>  
hbspt.forms.create({  
region: “eu1”,  
portalId: “25752219”,  
formId: “fdb331a4-11e1-4d9d-8290-7e1c6129ba99”  
});  
\</script\>  
i have already use the solution with https: but it doesn’t work.

---

<div class="post-metadata">

**Author:** ![UArrobbio](https://avatars.discourse-cdn.com/v4/letter/u/ecccb3/32.png) [@UArrobbio](https://community.hubspot.com/u/UArrobbio)\
**Post date:** [October 7, 2024, 12:29pm UTC](https://community.hubspot.com/t/form-error-uncaught-referenceerror-hbspt-is-not-defined/117772/2 "2024-10-07T12:29:26Z")

</div>

the problem was due to iubenda module. you need to add authorization in the iubenda dashboard for 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:** [October 7, 2024, 5:48pm UTC](https://community.hubspot.com/t/form-error-uncaught-referenceerror-hbspt-is-not-defined/117772/3 "2024-10-07T17:48:38Z")

</div>

Hey, @UArrobbio 👋 Thanks for letting us know how you solved the issue 🙌 — Jaycee
