Form Height Issue and No Scroll Bar?

  • jkrecicki
    Asked on January 25, 2016 at 11:40 PM

    My website is http://himlayansaltpink.com and when you click the broken image before 'Coarse Salt' or 'Fine Salt' on the first page. The jot form comes up. I cannot figure out how to make the form 900px height or how to change the height and give it a scroll bar. Please help.

    Jotform Thread 755825 Screenshot
  • beril JotForm UI Developer
    Replied on January 26, 2016 at 4:54 AM

    While adding the code to your webpage you can change the height and scrolling option of your website as you see below:

    <iframe id="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.com/30287590660962" frameborder="0" style="width:100%; height:900px; border:none;" scrolling="yes"> </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; } var isJotForm = (e.origin.indexOf("jotform") > -1) ? true : false; if(isJotForm && "contentWindow" in iframe && "postMessage" in iframe.contentWindow) { var urls = {"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)}; iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}), "*"); } }; if (window.addEventListener) { window.addEventListener("message", handleIFrameMessage, false); } else if (window.attachEvent) { window.attachEvent("onmessage", handleIFrameMessage); } if(window.location.href && window.location.href.indexOf("?") > -1) { var ifr = document.getElementById("JotFormIFrame"); var get = window.location.href.substr(window.location.href.indexOf("?") + 1); if(ifr && get.length > 0) { var src = ifr.src; src = src.indexOf("?") > -1 ? src + "&" + get : src + "?" + get; ifr.src = src; } } </script>
     
    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.