Simple glideModal Confirm vs confirm()?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:21 AM
My use case if that I need the same behavior that confirm() does on the client side but I would like it to look like the OOB glideModal confirms for delete for consistency. It seems excess though to me to have to create a UI page, and a SI (for the ajax call), which is lots of lines of code vs the 1 line of confirm().
We don't have service portal turned on yet and won't be for a while so I cannot use spModal.
Any thoughts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2017 09:32 AM
Corbett,
Kudos to you for having a goal of being consistent with the base instance UI. In the ServiceNow Design System, you will find examples of various modals as well as the ability to generate sample code to get you started.
Hope this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2017 08:25 AM
Oh nice I didnt know this existed! Followup questions:
1. This is for GlideModal not spModal right?
2. While this gives me examples of the UI page we have to create to call in the GlideModal call it does not give me examples of code to run based on what button they click, so how do I get that?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2017 08:33 AM
Sorry, Corbett. That nugget was the extent of my insight.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2017 10:40 AM
This is actually what I was looking for, my answer in this post. How do I pass values to UI Page with glideModal? I just accidentaly put it in the wrong post!