When visitors want to leave your site, you can hold them back by showing a form. To do this, select the needed form and go to the "Share" tab.
On the page that will open, choose the "POPUP" method.
In the POPUP settings, under "Display options" activate "When closing the tab".
Once you’ve configured everything you wanted, copy the embed code and paste it into your website.
Please note that you need to paste the embed code before the closing “body” tag on your website.