Form Won't Embed on GoDaddy Site

  • Profile Image
    storysuperstar
    Asked on March 17, 2015 at 09:50 AM

    Hello,

    I am using GoDaddy web builder and my application form won't work properly. It seems the only way to embed it to go daddy is with HTML. It won't accept any other way. Can you check the code to make sure it is working properly? Thank you!

    Brad Hill

  • Profile Image
    Shadae
    Answered on March 17, 2015 at 11:31 AM

    Hi Brad,

    To embed your form on your GoDaddy webpage, you would need to use the iFrame embed code.

    http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code 

    You would only use the first part of the iFrame code to embed the form to your webpage:

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//form.jotformpro.com/form/50713334817958" frameborder="0" style="width:100%; height:8828px; border:none;" scrolling="no"></iframe>

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;case "collapseErrorPage":if (iframe.clientHeight > window.innerHeight) {iframe.style.height = window.innerHeight + "px";}break;case "reloadPage":window.location.reload();break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    You would use the section of the code highlighted in blue and exclude the code in red.

    I hope this helps, please inform us if you need further assistance.

    Thank you.