Height of form with hidden boxes

  • nkrei
    Asked on July 15, 2015 at 3:18 PM

    Hello:

    I have a bunch of hidden boxes on my form. They appear depending on how the user responds to the questions in the form.

    Now, when I download the form it looks like there is a lot of "extra" background below the form. I guess this is because the form size is set so that when all boxes are shown there is room for them. So how do I "shrink wrap" the height of the form to expand with the show/hidden boxes?

    Thank you.

  • jonathan
    Replied on July 15, 2015 at 5:19 PM

    The form must be embedded on a website. Can you share to us also the URL of your website where you have embedded the form?

    We will be able to provide a more appropriate suggestion if we can check and test the actual embedded form.

    As an initial suggestion also, you may want to embed the form using its Iframe embed code.

    user guide: -Getting-the-Form-iFrame-Code

     

    Thanks.

     

  • nkrei
    Replied on July 15, 2015 at 5:33 PM

    Thanks for responding, I have the form as an iframe here:

    http://jespertoftkristensen.com/JTK/form_inside_iframe.html

    Scrolling to the bottom reveals a lot of extra space (again: probably due to hidden boxes which expand as the user answers).

  • jonathan
    Replied on July 15, 2015 at 10:05 PM

    Thank you for providing the details.

    I can see what you meant on huge space at the bottom

    Height of form with hidden boxes Image 1 Screenshot 30

    Obviously, the iframe embed was already allotting height space for the hidden fields. 

    But have you tried instead already using the default embed script code? 

    I think it will be alright to use the default embed as there were no other script it would conflict about in the web page.

    Can you please try also. Let us see how it goes

    https://www.jotform.com/help/34-Adding-a-Form-to-a-Web-Page

    Height of form with hidden boxes Image 2 Screenshot 41

     

     

    Thanks.