Reload page after GlideModal submit

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2020 12:35 PM
I have a UI page displayed using GlideModal on a form. The issue I am facing is that I am not able to reload the page after submission of the UI page. It is because the processing script is not executed.
- Labels:
-
User Experience and Design

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2020 12:42 PM
Can you post your processing script and potentially client script, if you have anything in running in your HTML when you click the 'OK' button.
You should be able to use setRedirectURL() in your processing script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2020 06:09 AM
Hi Ashley, I am currently using the below function to close the Modal since the UI page is rendered using Iframe. It is successfully closing the page but not reload the parent page.
$scope.closeGlideModal = function() {
try {
GlideModal.get().destroy();
}catch(err){
console.warn("closeGlideModal ERROR: "+err.message);
var x = parent.document.getElementById('xxxxxxxxxxxx_closemodal');
if (x) {
x.click();
location.reload(); // This line is not executing, even without this line the processing script does not execute.
} else {
console.warn("No 'X' close button found!");
}
}
};