- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 08:28 AM
Hi everyone,
I've got a UI Action currently that is called "Cancel My Requested Item" for RITMs. We're running into issues where clients are accidentally clicking the button and it automatically cancels the item. I'm looking to add a pop-up confirmation prior to it actually cancelling the item, however I'm not extremely proficient in scripting and need some help.
Currently, the UI Action is server-side (client checkbox is unchecked) and the script is as follows:
current.state = '12';
current.stage = 'Request Cancelled';
current.active=false;
current.update();
action.setRedirectURL(current);
Is there an easy way to add a confirm before that script runs? This may be an easy question but I appreciate the help!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 01:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 08:43 AM
Take a look at this ServiceNowGuru article from Mark Stanger (Crossfuze) - http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 01:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2014 06:17 AM
Thank you, this worked perfectly!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2019 10:42 PM
This will no longer work in Service Portal as it only allows server-side UI actions.
Any idea on how to do a confirmation pop-up on Service Portal?