Reload page after GlideModal submit

Kiran Yogesh1
Tera Contributor

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.

2 REPLIES 2

Ashley Snyder1
Giga Guru

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.

Kiran Yogesh1
Tera Contributor

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!");

}
}
};