Issue with Closing Nested Dialog Overlay on UI Action in VR Remediation Task Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 10:43 PM
Hello Community,
We are encountering an issue with the UI Action named "Request Exception" on the VR Remediation task table. When the UI Action is triggered, a dialog window appears. Inside this dialog, there is a "Request Approval" button that triggers the Take Question page.
Previously, there was a cross ("X") button in the top-right corner of the dialog window that allowed users to close the dialog without submitting the form. However, we have removed this cross button and now need to close the dialog overlay programmatically after the form is successfully submitted (i.e., after the user clicks "Request Approval").
The challenge is how to close the nested dialog overlay only after the form submission has been completed. Is there a way to do this using a script or another method in ServiceNow?
Any help or insights from the community would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2025 11:19 PM
so the current Dialog page should close when Request Approval is clicked?
please share your UI page HTML, Client script code
check this as well
"Simple Modal Confirm" UI Page
did you try this?
GlideModal.get().destroy(); OR
GlideDialogWindow.get().destroy();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2025 03:01 AM
Hello Ankur,
We have tried both possibilities, As we are using the nested UI Pages On the Request Exception UI Action we are getting the Dialog window there we have Request Approval btn and when we Click on it we redirect it to Take Question Questionarie.
Previously we have the cross icon which closes the overlay, but it was allowing the user without filling the mandatory field.
We have Remove the Icon, Now we are not able to Close that Dialog window.