GlideModal()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 03:39 PM
Hi All,
Is there a way to trigger GlideModal() when I click on close(x) icon on a UI page?
I appreciate your help in this.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 07:25 PM
what's your business requirement?
you can invoke another UI page on close
what script did you start with?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 11:21 PM - edited 12-12-2024 11:23 PM
Hi @Ankur Bawiskar ,
Thank you for your response.
Business Requirement: When the default close (X) icon in the top-right corner of the modal is clicked, instead of closing the current UI page, a confirmation prompt window should appear with two buttons: Yes and No. FYI, I've created another UI page for confirmation.
Script Issue: I'm unsure which method to call to achieve this functionality. Could you please assist?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 12:23 AM
please share your complete UI page code.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2024 12:53 AM
Are you talking about the primary page or the page that needs to be invoked once the close is clicked?