When you embed a survey directly into your website, you want it to look and act as though you hand-coded it from scratch, with love. With Polldaddy’s new auto-resizing iframe embed for surveys and quizzes, you can embed a survey into your website for a seamless user experience for your survey participants—even if the iframe’s height needs to change to account for varying page lengths and error messages. All you need to do is copy the code we supply and paste it into your website.
Let’s say you’ve already created a survey.
Now, you’re ready to embed the survey directly into your webpage. Hover over the title of your survey in your dashboard, and click on Share. On the Share pop-up, select Website Inline. Copy the auto-resizing iframe code and paste it into your site:
Look, Ma, no Scrollbars!
In this second screenshot, the user forgot to answer the mandatory question, producing an error message. The auto-resizing iframe accounts for the error message’s added height, re-sizes the height of the iframe automatically and presents a seamless, scrollbar-free experience to your survey participants: