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

    Runtime Error when embedding form as an iframe

    Asked by datasciencedojo on January 11, 2017 at 01:12 PM

    Hi,

     

    I am getting the following error in my browser console if I try to embed a form on my webpage using iframe.

    Unable to load Sequence: args is not defined

     

    After some debugging, I found the source of the problem in the code that is generated by Jotforms. (see attached image)

    Can you fix this as soon as possible? Since this is throwing run time errors in our application.

     

    Thanks,

     

    Screenshot
  • Profile Image
    JotForm Support

    Answered by Kevin_G on January 11, 2017 at 05:11 PM

    May we get the form name that you're trying to embed and getting this error? 

    With the form ID we will be able to get an updated iFrame code so we can check why the problem happens and provide it to our developers. 

    In the meantime you could embed your form without the JavaScript code, that code works to automatically set the form's height; however, you could also set a fixed height and get rid of that conflict. 

    This is a sample iFrame code without the JavaScript code: 

        <iframe

          id="JotFormIFrame"

          onload="window.parent.scrollTo(0,0)"

          allowtransparency="true"

          src="https://form.jotform.com/FormID"

          frameborder="0"

          style="width:100%;

          height:2190px;

          border:none;"

          scrolling="no">

        </iframe>