Is it possible to customize the popup so that it closes by clicking on the grey background / overlay next to the popup? Currently it can only be closed via the X button, but users also like to simply click on the background next to the survey to close it.
Hi
Hi
Hi
Tagging
I have found a solution, maybe it is also interesting for others in the community:
document.addEventListener('click', function(event) {
if (event.target.classList.contains('tf-v1-popup')) {
// Schließe das Popup
event.target.style.opacity = 0;
event.target.style.display = 'none';
// Entferne overflow: hidden vom body
document.body.style.removeProperty('overflow');
}
});
Thanks so much for sharing this,
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.