How to pop-up a dialog box with "OK" and "Cancel" button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2020 11:54 PM
Hi All,
My Requirement is when a priority is updated to critical automatically pop-up should display with buttons "OK" and "Cancel".
If user clicks on "OK" button automatically email should send and if user click on "Cancel" button email should not send but priority should update.
Please assist me how can we achieve this!
Regards,
Lohitha.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2020 12:34 AM
Hi Ankur,
Yes, we can call the event is BR but before sending the email they want the Dialog box with OK and Cancel buttons if user clicks ok then only email should send and if user click cancel only priority should update.
Regards,
Lohitha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2020 12:44 AM
Hi,
in that case you need to write onChange on Priority
1) call the UI page from the onChange using GlideDialogWindow
2) Once the OK button is clicked you can use the UI page processing script to send the email
this link should help you for the steps
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader