Solved
Responsive Embed of iFrame form
Looking to see if anyone has some bullet proof js or css method to get the qualtrics iframe embeds responsive. I'm able to adjust width to the display width without problem. It's the height that's the trouble. No scroll bars on iphone, safari. I appreciate the help.
Best answer by whicks1
This should get you most of the way.
##In the footer of "look and feel - advanced"
```javascript
<script src="https://pym.nprapps.org/pym.v1.min.js"></script>
<script>
function renderWithTimeOut() {
myVar = setTimeout(render, 4000);
}
function render() {
pymChild.sendHeight();
}
var pymChild = new pym.Child({ renderCallback: renderWithTimeOut });
</script>
```
##From the "+ Add custom CSS" button
```css
html {
height: auto !important;
}
```
##On your HTML /parent page:
```html
<div id="ELEMENT_ID"></div>
```
```javascript
<script src="https://pym.nprapps.org/pym.v1.min.js"></script>
<script>
var pymParent = new pym.Parent('ELEMENT_ID', 'URL_OF_QUALTRICS_FORM', {trackscroll: true});
</script>
```
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.