Hi everyone,
I added issue collector to my webpage with custom trigger button. Now i want to log when new issue submitted from frontend via Issue Collector. As you now, I cant access iframe content since it is restricted by the same-origin policy on browsers. For these situations there is a postMessage mechanism. I added following code to my frontend but capture just 3 event for issue collector.
window.addEventListener('message', (event) => {
console.log('Message received from iframe:', event.data)
});
Events:
Message received from iframe: collectorLoaded //when form is open
Message received from iframe: {"frameHeight":884} //when form is open
Message received from iframe: cancelFeedbackDialog. //when form is closed
CancelFeedbackDialog event is fired if submit is succesfull (after 5 seconds) but also normaly close the form. I would like to get an event when submit is success or fail, not closing form. Is it possible?
Thank you
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.