Creating a Save button using UI Action

prudhvig
Tera Expert

Hi All,

I am trying to create a Save button on the incident form using UI Actions.

This is what it looks like :

Screenshot (4)_LI.jpg

Screenshot (3)_LI.jpg

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.

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

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.


View solution in original post

13 REPLIES 13

Uncheck active on the one you want to hide (the one available to admins.)


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


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


David Banghart
Tera Contributor

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

 

DavidBanghart_0-1686151524894.png

 

 

Learned the solution while taking the 2-day ITSM Implementation Course at Knowledge 2023.  It is in the course e-book.