GlideDialogWindow destroy()

andypollino
Mega Expert

Hi. I would like to use a UI page to let a user submit a few fields on an Incident ticket that, on submission, would create a dozen incident alerts for various teams based on the fields they filled in. I don't want to modify the incident table since this is used by such a small subsection of our users, and we don't interact with views currently.

My research has taken me to this guide:

https://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/

which I have been unsuccessful in implementing. Despite copying the UI page's HTML and client script, as well as the UI action, directly from that page, I was unable to have the popup GlideDialogWindow actually close when I press 'okay'. It does prompt me to fill in its field when I try to leave it empty, which leads me to believe that the UI page is correctly jumping from the HTML to the script.

I'm on Istanbul

1 REPLY 1

jason_lau
Tera Contributor

I'm seeing same problem on istanbul 07-16-2017_1252. My dialog window will close if I cancel (correct) will generate a JS alert if the form field is blank (correct) and when I hit okay button, my processing script will launch and I can gs.info something there so I know that works. What's not working is that the dialog window stays open, or I should say, I get redirected to just that UI page instead of the dialog window closing.