How to close a glide overlay window with onclick function.

cwmurphy
Mega Expert

I've created a button for end users to select a shipping method for purchase requests.   A glide overlay window pops up and gives them their choices.   Once they make a selection, there is a button called "Ship It" that they click.   I would like this button to close the glide overlay window.   So far, every attempt has been unsuccessful.   Does anyone know what I would put in my UI Page function to get this window to close one they click the "Ship It" button?  

18 REPLIES 18

Try the normal javascript code then,




window.close();


-Anurag

This does not work either.   The alert after it does not fire meaning it's stopping at that code and doesn't know what to do.


There is very little info on GlideOverlay.   I've only found these two pages:



Could you someone give me more information regarding glideOverlay?



Glide Stack - ServiceNow Wiki


Artemis15
Kilo Guru

Hi Chris,



Could you please be more specific that how are you rendering the glide-window



Can you provide your sample code, it may be helpful to get the error?



Thanks,


Akash Rajput


All code has been posted now.   UI Page and UI Macro info is below.