Hide "Delete" button from Approval form

khamsone
Kilo Expert

Hello,

I need to hide the "delete"button from approval form.

find_real_file.png

How can I proceed to do that ? I searched on the Service Now community but there are a lot way to do but I need the simpler way.

Thanks in advance for your help.

Regards,

10 REPLIES 10

Mujtaba Amin Bh
Mega Guru

You should use ACL to do so.



If a user doesn't have deletion rights on sys_approval table, he won't be able to see this UI Action.


Subhajit1
Giga Guru

The most effective way is to remove Delete Access to the Approval table.


You can do it by modifying the ACL structure on the Approvals table to not allow anybody to delete the Approvals.



Hope that helps.



Thanks,


Subhajit


BALAJI40
Mega Sage

The best one as said above like create delete acl for required roles like give admin, then admin only delete the approval records.



or one more way was, go to the ui action delete button (global delete ui action )



in the condition add, (!current.sys_class_name=='sysapproval_approver') // remove for admin also


khamsone
Kilo Expert

Hi,



Thank you for reply. I'm using ACL but that's not working, perhaps it's not correctly set up :



find_real_file.png



Only security_admin role can delete.



Thanks in advance for help.