Hi, I am using iframe to embed a qualtrics survey into my website, which works well. Now I want to show a button on my website only after users have finished the survey. I wonder whether it is possible for my website to detect the user has finished the survey.
Solved
Embedded survey - is there a way to detect end of survey?
Best answer by ahmedA
Okay. the iframe issue.
You can probably post a message to the parent window. Something like:
parent.postMessage("End of Survey", "https://yourwebsite.com");You can add an event listener to your JS:
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event) {
if(event.data.includes("End of Survey")){
// You stuff here
}
}
See here and here for more details.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
