The other day in the call-in Kami brought in a programmer to help us figure out a problem with the height of the embedded iframe form from a campaign form copied into a Wordpress page. I had copied the code from the form builder. Changing the height of the container worked. Today I had to make some changes to the text of the form, and to save it to a different campaign, so I copied the new form code over to my web page, fortunately also saving the old code which was working but pointing to the wrong C&P iframe source. And the height was truncated. So I compared the older code to the newer code and found the problem, which I share with you below. Replacing the newer code with the older code, just changing the C&P iframe source, works.
The problem seems to be in the highlighted phrase: (note I had to change the height to 2000px but otherwise this is copied directly from the Connect formbuilder)
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 2000px; overflow: auto; -webkit-overflow-scrolling:touch; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 2000px; }</style><div class="embed-container"><iframe SRC="https://connect.clickandpledge.com/w/Form/692d1a36-edff-4411-8b04-e29f69eefe0c" width="100%" height="2000" frameborder="0" scrolling="auto" allowfullscreen="allowfullscreen"></iframe></div>
For reference, this is the older code, which worked after the height was changed:
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 2000px; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 2000px; }</style> <div class="embed-container"><iframe src="https://connect.clickandpledge.com/w/Form/4d2ba37f-7bc8-43c2-bb2d-c7d7eceefa05" width="300" height="2000" frameborder="0" scrolling="auto" allowfullscreen="allowfullscreen"></iframe></div>
SO it works, and I'm happy, this is just an FYI.
The problem seems to be in the highlighted phrase: (note I had to change the height to 2000px but otherwise this is copied directly from the Connect formbuilder)
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 2000px; overflow: auto; -webkit-overflow-scrolling:touch; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 2000px; }</style><div class="embed-container"><iframe SRC="https://connect.clickandpledge.com/w/Form/692d1a36-edff-4411-8b04-e29f69eefe0c" width="100%" height="2000" frameborder="0" scrolling="auto" allowfullscreen="allowfullscreen"></iframe></div>
For reference, this is the older code, which worked after the height was changed:
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 2000px; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 2000px; }</style> <div class="embed-container"><iframe src="https://connect.clickandpledge.com/w/Form/4d2ba37f-7bc8-43c2-bb2d-c7d7eceefa05" width="300" height="2000" frameborder="0" scrolling="auto" allowfullscreen="allowfullscreen"></iframe></div>
SO it works, and I'm happy, this is just an FYI.
Comment