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

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.


Thank you Chuck.



Can I script it in such a way that it appears next to Update button?


No script needed! The order field on the UI action form determines the placement of the buttons (lower numbers to the left, increasing to the right.) You can use negative numbers if you desire to have extreme left.


Thank you Chuck. It worked