Customize iframe's height

  • torbzy
    Asked on January 2, 2020 at 2:44 PM

    I have a couple of problems that I'm experiencing...

     

    I have created a booking form:

    https://www.earthspirit-centre.co.uk/booking-new.php

    https://form.jotformeu.com/200014479488054

    Firstly, I cannot use Iframe embed, as your JS script forces a height of 11900+ px on load. This means the 'Booking Forn 2020' and thumbnail are half way down the page (6000px down - which is a lot of scrolling to click start filling the form). So, I'm using pop-up instead.

    If you look into my account, you'll see there's one admission.

    I want to sign it digitally (after the user has submitted to us) and tick a few hidden fields, generate a NEW PDF with our additions and download as a PDF. But, when I try to download it, I get three invalid BLOB files which are corrupted PDF's and do not work.

    If I try to load up this submission as a PDF, before or after I've edited it, the system fails and I get nowhere....

    Using Mac 10.11 Firefox v.71

    any ideas? I'm about to give up and find another similar provider.

     

    Jotform Thread 2097735 Screenshot
  • John Support Team Lead
    Replied on January 2, 2020 at 4:17 PM

    Firstly, I cannot use Iframe embed, as your JS script forces a height of 11900+ px on load. This means the 'Booking Forn 2020' and thumbnail are half way down the page (6000px down - which is a lot of scrolling to click start filling the form). So, I'm using pop-up instead.

    You can use the iframe code then specify the preferred height. Just skip the "script" part as shown below:

    <iframe frameborder="0" id="JotFormIFrame" name="JotFormIFrame" onDISABLEDload="window.parent.scrollTo(0,0)" scrolling="no" src="https://form.jotform.com/11111111111111" style="width:100%; height:800px !important; border:none;"></iframe>

    Where we change the height from 539 to 800 pixels.

    I have moved your concern about downloading PDF to a separate thread so we could discuss further on that specific topic. I will be posting my response to that via this link below:

    https://www.jotform.com/answers/2097899