How to close a glide overlay window with onclick function.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 05:43 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 06:19 AM
Hi Chris,
have you tried this?
//Destroy the current dialog window.
GlideDialogWindow.get().destroy();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 06:46 AM
I have tested with this and nothing happens. I have an alert set in the function to run in order to see if it's working. when I put GlideDialogWindow.get().destroy(); in the code, the alert fails to run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 06:23 AM
Also check this, last input on this post by Jonathan
Could you someone give me more information regarding glideOverlay?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2014 06:48 AM
I checked into the GlideBox properties. When changing it from a GlideOverlay to a GlideDialogWindow, everything breaks. The button that I click in order to get the window to popup changes shape and the screen grays out. Nothing ever shows up. When changing the code in the UI Macro back to a GlideOverlay, the window then pops open. If it makes any difference, the button I have created is scripted into the Shopping Cart above the Add To Cart button.