How reload form if the UI Page is closed through the "X" close button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 03:57 AM
Hi All,
I have a requirement to reload the form if we are closing the UI Page through "X" close button present on UI Page.
The highlighted "X" button is the close button on the UI Page, how can we detect if the UI Page is getting closed through the OOB "X" close button and then I can write a code to reload the form.
Please suggest how to achieve this.
Thanks,
Jaswinder Kaur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 09:39 PM
Hello @Jaswinder Kaur,
I have worked on similar requirement please try this below code
UI Page client script code:
window.opener.location.reload();
window.close();
Now after hitting save on my form that pops up in a new window, it quickly redirects to that UI Page, which closes itself and reloads the parent window!
Hope that helps, thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 05:07 AM
Hi @Jaswinder Kaur ,
Did you happen to achieve this, i have teh same requirement to reload the form once then close the ui page.
thanks,
Svani