- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 07:02 AM
Hi All,
I am trying to create a Save button on the incident form using UI Actions.
This is what it looks like :
This is how I created my UI Action. I actually copied the entire thing from one of the sample Save UI Actions available in Servicenow instance. But, I am unable to see any button on the incident banner.
I want the Save button to be seen next to Update button on Incident form.
Please help. Thanxx in advance.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 07:17 AM
Check to see if you have any other form buttons (particularly that update) that have the same action name sysverb_insert_and_stay. Within the same type (form button, form menu, etc.) action names must be unique.
Also, try a very simple approach first.
Condition: current.canCreate()
Script:
current.update();
action.setRedirectURL(current);
That's it. See if it works and build on from that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 05:55 AM
Uncheck active on the one you want to hide (the one available to admins.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 06:48 AM
Hi Chuck,
I was worried with your solution that it would hide the Save button for other modules since it appeared to be a 'global' button. I discovered that there are 3 (what appear to be OOB) save buttons for other modules. I copied the wrong one it appears. Once I copied the one of the 'Save' UI Actions with comments 'Saves an existing record and redirects back to current screen (context version)' vs. 'Saves a new record and redirects back to self (button version, advanced mode)' the global version Save button disappeared. Can't figure out how this occurring, but I am down to a single Save button for Admins and one that ITIL roles can see as well.
Thanks,
-Wesley

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2017 01:12 PM
If the UI actions have the same value in the Action name field, you can create table specific ones that override the global one or one of a base table (in an extended table structure.)
Override or remove a UI action for an extended table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2023 08:25 AM
In Tokyo:
1. Navigate to System Properties
2. Scroll until you see the option: Show "Save", "Insert" and "Insert and Stay" buttons on forms.
3. Set this property to true by checking the Yes box.
4. Scroll back to the top and click Save
Learned the solution while taking the 2-day ITSM Implementation Course at Knowledge 2023. It is in the course e-book.