I've embedded a form from a third party service (JotForm). I placed the code in the Template of the page.
But the form on the page gets cut-off.
Go to: http://www.pistahan.net/parade_contingent_application
Click Submit without filling out any of the fields. You'll see error messages on the form fields (that's ok).
Now look to the bottom of the page - you can't see Submit anymore without having the scroll.
I've already adjusted the code to a height of 5000px (almost double the height of the form). Any suggestions on how to prevent this?
There is no maximum height limit for basic pages. What's happening on your page is that the embedded code of your form is using an iframe with a specified height of 4770px with scrolling enabled. When the form refreshes with an error message, it makes the embedded form longer — but the height of the iframe doesn't change.
You can specify a larger iframe height by editing the code of the embed in your page-level template.
Showing 7 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
Hines Digital
Certified Architect
Certified Expert
Essentially the iFrame’s height controls are being overridden, and it’s instead defaulting to “auto” size to the height of the initial content. It does not resize when it’s contents refresh. That is why it appears to be “cut off.” This is expected behavior for iFrames.
It may be possible to use creative CSS and/or Javascript to override this behavior, but that would be relatively advanced theme work.
Am I missing something? Am I not changing the height in the correct location in the iframe code? Am I placing the iframe code in the wrong location (the page itself, Template section)?
Also, I’ve noticed that no matter what I change the iframe height to, the page somehow defaults to 2680px as shown in this screenshot http://cl.ly/image/320v0V1k3r2X
Appreciate the help.
Hines Digital
Certified Architect
Certified Expert
Again, what’s happening here is that when the iFrame initially loads it’s sized to fit its content; this happens when your NationBuilder page loads. When you “submit” the form, it refreshes the iFrame — not your NationBuilder page.
The content of the iFrame is now longer, but the frame itself didn’t (and won’t) change size, as that’s how iFrames work. That’s why the content now exceeds the length of its container.
I just now changed the height to 8770px with the same results.
Is “editing the code of the embed in your page-level template” mean somewhere different?