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

    If script conflict issue is resolved with specific iframe embed code, do we need to open a thread each time we make a change to the form?

    Asked by glandoreghyc on April 15, 2015 at 05:43 PM
    2. The script conflict issue would seem to be a problem for me now, what is the issue? as if i have to change the  Form i need to come back to you to get an updated embedded code...
    iframe embed custom embed code
  • Profile Image

    Answered by Ben on April 15, 2015 at 05:53 PM

    The answer here can be yes and no - depending only on the code and if what has been done to it:

    1. needs to be changed with every update
    2. is something that is easy to do
    3. requires specific knowledge (like scripting, CSS, etc)

    We always ask to have the final form ready in order to help with the embedding code if it is such that it would require some alterations.

    Usually however the code alterations are not something that is hard to change by you or someone else and as such you should be able to make the change yourself.

    In your case the only change in the iframe embed code was to add the min-height inline CSS property, because the conflict resized your form to a very small value.

    In your case, this is the code:

    <iframe frameborder="0" scrolling="no" style="width: 100%; height: 320px; min-height: 1600px; border: medium none;" src="//form.jotformpro.com/form/51022125385950" allowtransparency="true" onload="window.parent.scrollTo(0,0)" id="JotFormIFrame"></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 &gt; 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>

    and you will notice that this time I have highlighted only the part that was added by me.

    When a change is made such as the above, you may only need to update the 1600 into some lower or higher number, depending of course what kind of changes you make on your form and if needed.

    Of course, we are always happy to assist so if you are having any issues doing it yourself, do contact us and tell us about how we can help you.