Resizing the iframe for Qualtrics Surveys
The instructions below are for integration activities within Qualtrics.
Qualtrics
Open your Qualtrics survey.
In the left navigation, click the Survey Options icon:
Then, choose General from the Options menu:
Scroll down until you see “New Survey Taking Experience” and take note if the button is toggled to On or Off.
Now, click the Look and Feel icon within the left navigation:
Click general, then scroll down to Header, and click edit:
Click the “source” button in the toolbar:
Paste one of the following code snippets into the text area:
If the “New Survey Taking Experience” setting is ON:
<script type="module" src="https://terracotta-js.s3.us-east-2.amazonaws.com/integrations.resize.qualtrics.js"></script>
If the “New Survey Taking Experience” setting is OFF:
<script type="text/javascript" src="https://terracotta-js.s3.us-east-2.amazonaws.com/integrations.resize.qualtrics.legacy.js"></script>
Click Save, then click Apply.
For both, return to Look and Feel via the left navigation, and then click Style:
Scroll to Custom CSS, and click “edit”:
Paste this code snippet into the editor:
html{height:fit-content;}. Click Save, then Apply.
You must republish your survey in order for these changes to take effect.