Request: Support an iframe auto height script

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

  • Profile Image
    Answered on October 08, 2013 at 08:17 PM


    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.


  • Profile Image
    Answered on October 08, 2013 at 08:20 PM

    Awesome, thanks for being so responsive.