Submit button does not work


I am trying to embed a form on my website. When you click on the submit button it does nothing.

Any idea why?


1 Reply 1
HubSpot Product Team

Hi @Loganfoxesdad,

Happy to help here! With reference to the page source of , it looks like the original form embed code has been edited and merged with an <iframe> tag.

<iframe id="iframe-01308" frameBorder="0" sandbox="allow-scripts allow-same-origin allow-forms allow-popups allow-presentation allow-top-navigation" src="x-javascript&colon; window.frameElement.getAttribute(&quot;srcdoc&quot;);" srcDoc="&lt;script&gt;window.onmessage = function(event) {event.source.postMessage({iframeId:, scrollHeight: document.body.getBoundingClientRect().height || document.body.scrollHeight}, event.origin);};&lt;/script&gt;&lt;body style=&#x27;margin: 0&#x27;&gt;&lt;script charset=&quot;utf-8&quot; type=&quot;text/javascript&quot; src=&quot;//;&gt;&lt;/script&gt;
	portalId: &quot;6196666&quot;,
	formId: &quot;e23c1db6-9956-48ae-85b1-053206b9b373&quot;
&lt;/script&gt;&lt;/body&gt;" style="width:100%;height:undefinedpx;overflow:visible;transition:height 1.5s ease;-webkit-transition:height 1.5s ease;-moz-transition:height .25s ease"></iframe>

It is not recommended to edit the form embed code provided by HubSpot as it may affect the forms functionality. You may also find it useful to review the steps in this article: Share a HubSpot form on an external site 

The original form embed code structure is 

<script charset="utf-8" type="text/javascript" src="//"></script>
	portalId: "6196666",
	formId: "e23c1db6-9956-48ae-85b1-053206b9b373"

Hope this helps! 🙂