<script>(function(w,d,s,u,f,m,n,o){o=' https://survey.zohopublic.com ';w[f]=w[f]||function()(w[f}.p=w{f}.p||[]).push(arguments);};m=d.createElement(s),n=d.getElementsByTagName(s)[0];m.async=1;m.src=o+u;n.parentNode.insertBefore(m,n);zs_intercept(o,'LKzzHm',{});})(window, document, 'script', '/api/v1/public/livesurveys/LKzzHm/popup/script', 'zs_intercept');</script>
window.addEventListener('message', (message) => {
if (message.data && message.data['zohosurvey_respondentStatus'] === 'completed') {
// survey is finished
}
})
data = { zohosurvey: {height : surveyHeight,
width : surveyWidth,
action : "surveySize"
}}
data = { zohosurvey: {action : "moveScroll" ,
position : position}}
<iframe src="<survey link>" frameborder='0'style='height:700px;width:100%;' marginwidth='0' marginheight='0' scrolling='auto'allow='geolocation' id='iframe-id'></iframe>
<script>var iframe = document.querySelector("#iframe-id"); // change the id based on iframe's id
function setIframeSize(data){
if(data.zohosurvey ){
if(data.zohosurvey.action == "surveySize"){
iframe.style.height = data.zohosurvey.height + 'px';
iframe.style.width = data.zohosurvey.width + 'px'
}else if(data.zohosurvey.action == "moveScroll"){
window.scrollTo(500, iframe.offsetTop + data.zohosurvey.position);} } }
window.addEventListener('message', function(e) {
setIframeSize(e.data);
} , false);
</script>
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
Write to us: support@zohoforms.com