Runtime Error when embedding form as an iframe

  • Profile Image
    datasciencedojo
    Asked 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,

     

  • Profile Image
    Kevin_G
    Answered 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>