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

You are very welcome. Thank you for using the community!


Hi, I have a one requirement,that is to crate a radio button on incident form, in that when ever the cursor on it its displays the how many users are view the particular incident record(like particular team members).and click on that it displays the those names(users name).


Why not use the built in functionality of "Presence"?


Hi Chuck,



Could you please have a look at this one and help me ? : Creating Related Lists for Contract and Entitlements on Incident form


Wesley Breshear
Tera Expert

Hi Chuck,



Needed to create a "Save" button to Tasks (sc_task) so agents could update/change 'Assign To' values for tasks.   OOB it didn't exist for non Admin roles.   But now for Admins there are now two "Save" buttons due the a 'gobal' UI Action for admins.   What would be the best way in handling the duplication/conflict?



Global Save.jpg



Thank you,


-Wesley