Does KoboToolbox support postMessage for Height?

Hello,

I’m trying to solve a cross-origin issue as my form is displayed on a WORDPRESS-site via an iFrame. The site and the KoboToolbox-form being on 2 different servers, comes up this question :

Does KoboToolbox support postMessage ? / Where can I figure out if KoboToolbox’s iFrames send height data via postMessage ?

This would help me figuring out how to solve an Height-issue.

Best regards,

:slightly_smiling_face:

Hello @alienationfreez, from my undertsanding KoboToolbox forms in an iFrame do not send postMessage events to adjust the height automatically. That’s why you are seeing a height problem. The easiest way to fix it is to set a fixed height for your iFrame using CSS. Example:

<iframe src="YOUR_KOBO_FORM_URL" style="width: 100%; height: 1200px; border: none;"></iframe>

You can adjust the height value depending on how long your form is.

1 Like