Close GlideDialogWindow Popup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 05:58 AM
Hello,
I'm working on a form, and I have a onChange script that opens a GlideDialogWindow which has two buttons, Cancel and Print. The Cancel button executes GlideDialogWindow.get.destroy() and the Print button runs a javascript function to print the form. The form prints correctly and everything, but once the print dialog window closes, the GlideDialogWindow is still there and it won't return to the form.
Here's a screenshot of the UI Page that gets called via GlideDialogWindow function from the onChange script. The print_form is the id of the div containing the verbiage that is to be printed.
In the Javascript console, I get the following
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 06:12 AM
Hey Brad,
Can you try calling 'GlideDialogWindow.get().destroy();' inside okayClicked(divName) instead of calling it from closeWindow().
Let me know if that works.
Thanks,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2017 10:04 AM
Thanks for the reply Abishek. I tried this and the error persisted.