How do I hide the 'Insert' and 'Insert and Stay' buttons from the Approval form

ritaaudi
Tera Contributor

Hi: Not sure why I'm seeing 'Insert' and 'Insert and Stay' buttons on the Approval form. Should these display OOB. What's the best way to hide them for the sysapproval_approver table (or restrict to admin)? Thanks, Rita

6 REPLIES 6

raprohaska
Kilo Guru

I believe the best practice is to create a UI action that overrides the OOB action and make the condition always false. I guess you could allow admin access if you thought it needed.


find_real_file.png


rohantyagi
ServiceNow Employee
ServiceNow Employee

ritaaudi, you can find this info. here: http://wiki.servicenow.com/index.php?title=UI_Actions#Overriding_or_Removing_a_UI_Action_for_an_Exte...


Also look at this older community post: Hiding insert and insert and stay buttons on approvals


Careful if you make the insert and stay as false because it may hide it for all lists or forms.


Chuck Tomasi
Tera Patron

OOB, Insert and Insert & Stay are context menu options, not buttons. It sounds like someone has already gone "off the reservation" by customizing an OOB object. If that's the case, then either create the conditions to not display them for that table.



Example: add to the conditions field current.getTableName() !='sysapproval_approver'



Or, as the others have suggested, create a UI action override (a UI action with the same 'action name', but different condition so it doesn't show.)



UI Action Overrides