Embedding form in Godaddy: Can I embed a form without JavaScript?

  • info690
    Asked on June 24, 2015 at 9:41 AM

    Our company uses the Godaddy website builder for its pages.  However, at this time, the interface does not support JavaScript.  Is it possible to provide me with basic HTML code for our forms?

  • Jan
    Replied on June 24, 2015 at 12:00 PM

    You can embed the form using the Iframe method. Here's a guide: http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code

    Here's an example:

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//www.jotform.com/form/#############" frameborder="0" style="width:100%; height:899px; 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>

    *Please try the whole code first (orange and blue) and see if it works. If not, then just try the orange one (without scripts).

    If you want to download the full form source code, please check this guide: http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form