Submit button does not work

Loganfoxesdad
Member

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

www.beyouownboss.co/form

Any idea why?

 

0 Upvotes
1 Reply 1
joceyng
HubSpot Product Team

Hi @Loganfoxesdad,

Happy to help here! With reference to the page source of https://beyouownboss.co/form , 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: event.data, 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;//js.hsforms.net/forms/shell.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
  hbspt.forms.create({
	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="//js.hsforms.net/forms/shell.js"></script>
<script>
  hbspt.forms.create({
	portalId: "6196666",
	formId: "e23c1db6-9956-48ae-85b1-053206b9b373"
});
</script>

Hope this helps! 🙂