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

    Request: Support an iframe auto height script

    Asked by jzapert on October 08, 2013 at 07:46 PM

    Currently, it's impossible to use javascript to automatically set the height of an iframe containing a JotForm. That's because of cross-domain security. An iframe on a page, containing a JotForm, can't have it's height set by script---because the JotForm is hosted on a different domain than the containing page.

    There are a number of javascript plugins, most notably JQuery auto height, that will handle this. But, a snippet of script must be placed on the destination page (in this case, the JotForm itself.)

    All you would need to do is:

    a) Select the plugin you would support (there are a couple of very popular jquery plugins)

    b) Make it an option on the form setup to include the snippet of script the plugin needs.

    This script wouldn't be a security risk. You'd write the code, it wouldn't be alterable. All it is a postmessage to the containing page.

    This would make pages containing a JotForm look a lot better: afterall, JotForm's height changes, it's not set. When sections open up, when pages in the form change, etc.

    height JotForm sections domain
  • Profile Image
    JotForm Support

    Answered by EltonCris on October 08, 2013 at 08:17 PM

    Hi,

    Thanks. I have taken your request into consideration as I find it useful. I have raised this as a feature request.

    You will received updates here once there will be any news on the requested feature.

    Regards!

  • Profile Image

    Answered by jzapert on October 08, 2013 at 08:20 PM

    Awesome, thanks for being so responsive.