# Formstack embed help

**URL:** <https://community.hubspot.com/t/formstack-embed-help/110870>\
**Category:** APIs & Integrations\
**Tags:** cms-content, forms\
**Created:** [July 8, 2024, 6:45pm UTC](https://community.hubspot.com/t/formstack-embed-help/110870 "2024-07-08T18:45:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGrushetskiy](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@DGrushetskiy](https://community.hubspot.com/u/DGrushetskiy)\
**Post date:** [July 8, 2024, 6:45pm UTC](https://community.hubspot.com/t/formstack-embed-help/110870/1 "2024-07-08T18:45:54Z")

</div>

Hello,

I’ve been trying to embed a Formstack into a landing page on our website ([Affiliate Program - RCN Capital](https://rcncapital.com/affiliate-program)) but I’m having trouble getting the form to populate.

I double checked that the form code was entered correctly, including the necessary Javascript, and also if the HubSpot tracking code was the source of the problem, but still no luck.

Any insights would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![SteveHTM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stevehtm/32/22074_2.png) [@SteveHTM](https://community.hubspot.com/u/SteveHTM)\
**Post date:** [July 8, 2024, 8:54pm UTC](https://community.hubspot.com/t/formstack-embed-help/110870/2 "2024-07-08T20:54:08Z")

</div>

@DGrushetskiy - Are you sure here that you have embedded a HubSpot form correctly? All you should need to add to your page is the embed script generated by the forms tool. This looks a bit like:

hbspt.forms.create({

region: “na1”,

portalId: “{{hub\_id}}”,

formId: “{{ selected\_form\_id }}”,

});

\</script\>

When I look at your page source I see a lot of copied HTML, which seems to indicate a wrong approach.

Hope I have the situation understood correctly.

Steve

---

<div class="post-metadata">

**Author:** ![DGrushetskiy](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@DGrushetskiy](https://community.hubspot.com/u/DGrushetskiy)\
**Post date:** [July 8, 2024, 9:20pm UTC](https://community.hubspot.com/t/formstack-embed-help/110870/3 "2024-07-08T21:20:46Z")

</div>

Yes, the code is located in an invisible content row Div located at the bottom the page:

\<div class=“formstack-container”\>  
\<script type=“text/javascript” src=“[https://rcncapital.formstack.com/forms/js.php/affiliate\_form](https://rcncapital.formstack.com/forms/js.php/affiliate_form)”\>\</script\>  
\</div\>  
\<script\>

The associated CSS and JS are also located in their correct locations within the Design Manager
