What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Form on Wix page does not load on top after page break

    Asked by sloweddingvendors on December 08, 2016 at 03:57 PM

    Hello,

     

    I have created form: https://form.jotform.com/63136141458150.

     

    The code I received, and placed on Wix is the following:

    <iframe id="JotFormIFrame-63136141458150" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="https://form.jotform.com/63136141458150" frameborder="0" style="width:100%; height:539px; border:none;" scrolling="no"> </iframe> <script type="text/javascript"> window.handleIFrameMessage = function(e) { var args = e.data.split(":"); var iframe = false; if (args.length > 2) { iframe = document.getElementById("JotFormIFrame-" + args[2]); } else { 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 = false; if (args.length > 2) { ifr = document.getElementById("JotFormIFrame-" + args[2]); } else { 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>

     

     

    The form/code works fine on PC and mobile devices running Android, using Chrome and Internet Explorer, HOWEVER, after testing it on iPhone, the form is loaded at the bottom. Specifically, the webpage containing the iframe is located here: http://www.sloweddingvendors.com/vendor-match 

     

    Help would be kindly appreciated. Thank you!

     

    Korinna

     

    Page URL:
    http://www.sloweddingvendors.com/vendor-match

  • Profile Image
    JotForm Support

    Answered by jonathan on December 08, 2016 at 08:10 PM

    Hi Korinna,

    Can you also try first re-embedding your form https://www.jotform.us/form/63136141458150 on your Wix website using instead the default embed code.

    Follow this user guide: Adding-a-Form-to-Your-Wix-Site

    Test preview again your website page after re-embedding. Let us know if this process still did not resolve the issue.

    Thanks.