# embed form getting error

**URL:** <https://community.hubspot.com/t/embed-form-getting-error/139728>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [September 18, 2025, 1:50pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728 "2025-09-18T13:50:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![OKaufman](https://avatars.discourse-cdn.com/v4/letter/o/eb8c5e/32.png) [@OKaufman](https://community.hubspot.com/u/OKaufman)\
**Post date:** [September 18, 2025, 1:50pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/1 "2025-09-18T13:50:49Z")

</div>

form is displayed but i am getting an error {  
“status”: “error”,  
“message”: “You cannot fetch this type of form using this endpoint. Not an Embed version 2 or 3 form”,  
“correlationId”: “23600c83-ace9-47d1-8d40-1251817392da”  
}

can someone help with this

only trying to show hubspot form inside boostrap modal

the button (link )

\<a href=“javascript:void(0)” id=“openModalLink” class=“side-menu-link”\>  
\<i class=“fa fa-info”\>\</i\>  
\<span class=“title”\>Knowledge Base\</span\>  
\</a\>

modal

\<div id=“omri” class=“modal fade” tabindex=“-1” role=“dialog” aria-hidden=“true”\>  
\<div class=“modal-dialog modal-lg modal-dialog-centered”\>  
\<div class=“modal-content”\>  
\<div class=“modal-header”\>  
\<h5 class=“modal-title”\>Knowledge Base Form\</h5\>  
\<button type=“button” class=“close” data-dismiss=“modal”\>\×\</button\>  
\</div\>  
\<div class=“modal-body”\>  
\<!-- HubSpot form will be injected here --\>  
\<div id=“hubspotFormContainer”\>  
@\*\<div class=“hs-form-frame” data-region=“na1” data-form-id=“818c9d7c-437b-45e3-8c6e-443c98e2b274” data-portal-id=“7651601”\>\</div\>\*@@

\</div\>  
\</div\>  
\</div\>  
\</div\>  
\</div\>

script

document.addEventListener(“DOMContentLoaded”, function () {  
// Make sure HubSpot forms script is loaded  
if (typeof hbspt !== “undefined” && hbspt.forms) {  
$(“#openModalLink”).on(“click”, function () {  
// Clear any previous form instance  
// $(“#hubspotFormContainer”).empty();

// Inject HubSpot form  
hbspt.forms.create({  
region: “na1”, // adjust to your region  
portalId: “7651601”, // 🔑 replace with your HubSpot portal ID  
formId: “818c9d7c-437b-45e3-8c6e-443c98e2b274”, // 🔑 replace with your HubSpot form ID  
target: “#hubspotFormContainer”  
});

// Show the modal  
$(“#omri”).modal(“show”);  
});  
} else {  
console.error(“HubSpot forms script not loaded!”);  
}  
});

---

<div class="post-metadata">

**Author:** ![chighsmith](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@chighsmith](https://community.hubspot.com/u/chighsmith)\
**Post date:** [September 18, 2025, 8:11pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/2 "2025-09-18T20:11:57Z")

</div>

Hi @OKaufman,  
Thank you for posting to the Community!  
I’d like to tag in some of our Top Contributors to see if they have any suggestions on this.  
Hi @WesQ @Bortami and @Gonzalo Have any of you all seen this error before?  
Cassie, Community Manager

---

<div class="post-metadata">

**Author:** ![BrandonWoodruff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brandonwoodruff/32/61045_2.png) [@BrandonWoodruff](https://community.hubspot.com/u/BrandonWoodruff)\
**Post date:** [September 18, 2025, 9:59pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/3 "2025-09-18T21:59:42Z")

</div>

Hello,

Have you confirmed that your form is not a v1 form? If it is not an embed type form, then you will get that error.

I would verify the form is embeddable:

- In HubSpot → Marketing → Forms → open the form.
- Ensure it’s an Embedded form (v2/v3) created in the current editor.
- If it’s legacy or a KB/Support/Pop-up form, recreate it as an Embedded form (same fields), publish, and use that ID.

Let me know if this helps, or if you have any other questions!

* * *

✔ Was I able to help answer your question? Help the community by **marking it as a solution.**

| | **[Brandon Woodruff](https://www.linkedin.com/in/brandon-woody-woodruff/)**  
Senior Software Developer @ [Pearagon](https://www.pearagon.com/)Still have questions? Reach out at [brandon@pearagon.com](mailto:brandon@pearagon.com) ![]() |

* * *

---

<div class="post-metadata">

**Author:** ![OKaufman](https://avatars.discourse-cdn.com/v4/letter/o/eb8c5e/32.png) [@OKaufman](https://community.hubspot.com/u/OKaufman)\
**Post date:** [September 21, 2025, 6:44am UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/4 "2025-09-21T06:44:28Z")

</div>

Hi, this is what I selected when creating the form

 ![OKaufman_1-1758437050806.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/e/6e0cab4cb2e8404e7e161d8caa06fe862ebaefdc.png)

---

<div class="post-metadata">

**Author:** ![OKaufman](https://avatars.discourse-cdn.com/v4/letter/o/eb8c5e/32.png) [@OKaufman](https://community.hubspot.com/u/OKaufman)\
**Post date:** [September 21, 2025, 6:43am UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/5 "2025-09-21T06:43:24Z")

</div>

Hi

I created the form like that

 ![OKaufman_1-1758437050806.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/e/6e0cab4cb2e8404e7e161d8caa06fe862ebaefdc.png)

it is not the legacy form

---

<div class="post-metadata">

**Author:** ![ELopez16](https://avatars.discourse-cdn.com/v4/letter/e/d78d45/32.png) [@ELopez16](https://community.hubspot.com/u/ELopez16)\
**Post date:** [January 13, 2026, 4:33pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/6 "2026-01-13T16:33:16Z")

</div>

This error is still present on the New Form editor. The version is selected by the embled.

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [January 13, 2026, 5:13pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/7 "2026-01-13T17:13:57Z")

</div>

Hi @ELopez16

Thanks for adding that — helpful to know you’re seeing the same error even with the new form editor.

I’d like to invite some community members who are subject matter experts in HubSpot Forms (v2/v3), embed behavior, and form endpoints to join this conversation.  
@BrandonWoodruff @AGupta58 @kosalaindrasiri — hope you’re all having a great week! Have you seen cases where a form is embeddable / created in the new editor, but the API still returns **“Not an Embed version 2 or 3 form”**? Any insight into what actually triggers that error (specific form types, endpoints, region/portal mismatches, permissions, cached IDs, etc.) would be hugely appreciated.

Thanks in advance for any guidance you can share.  
Best,  
Victor

---

<div class="post-metadata">

**Author:** ![BrandonWoodruff](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brandonwoodruff/32/61045_2.png) [@BrandonWoodruff](https://community.hubspot.com/u/BrandonWoodruff)\
**Post date:** [January 13, 2026, 5:41pm UTC](https://community.hubspot.com/t/embed-form-getting-error/139728/8 "2026-01-13T17:41:32Z")

</div>

Some things you can look at is confirming that you are using the correct portal id, form id, and region id. Another thing to check is the Embed code type that you see in HubSpot.

Go to Marketing → Forms → (your form) → Embed, and see what the src is, and if it is an [js.hsforms.net/forms/embed/v2](http://js.hsforms.net/forms/embed/v2) or an [js.hsforms.net/forms/embed/v3](http://js.hsforms.net/forms/embed/v3). depending on that we can then confirm what type of form type it is and help you set it up to be to the correct version.

Let me know if this helps, or if you have any other questions!

* * *

✔ Was I able to help answer your question? Help the community by **marking it as a solution.**

| | **[Brandon Woodruff](https://www.linkedin.com/in/brandon-woody-woodruff/)**  
Senior Software Developer @ [Pearagon](https://www.pearagon.com/)Still have questions? Reach out at [brandon@pearagon.com](mailto:brandon@pearagon.com) ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/c/dcad77e6cf96145dd117147531ae4423b9b5cd91.png) |

* * *
