Hi Michael, if you open your popup through "Open as popup" - then at popup closing the page update doesn't happens (all selected checkboxes, entered text in Input area & taskarea - everything is kept). But an event occurs - page show.
If it is not needed, you can set a flag and then check it on the event page show.
For example, on a page show popups put code:
codelocalStorage.setItem('fromPopUp', 'true');
а на page show страницы с которой открывается попап повесить код
if (localStorage.getItem('fromPopUp') == 'true') {
localStorage.setItem('fromPopUp', 'false');
return;
} /code
And it's also very important - that this code from page show on which opens up popup should be very first in the list of events