Delete or Disable "Delete" button in Form for custom table extended from Task

tan2
Kilo Explorer

A table of a custom application is extended from Task table. When I apply the workflow for this table, button "Delete" is always shown up by default. Is there anyway that we can disable this button just in scope of application. I tried to disable this button using Client Script but this impacts globally. It means "Delete" button will be disappeared in all requests such Incident, Change, CI.... Please advise

2 REPLIES 2

paramveer
Mega Guru

Go To UI action, search for name "delete". In condition field add like, "current.sys_class_name = 'table_name_here'. If you want to remove the same for user specific then you can do the same by delete ACL.



Thaks,


Param


Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

One way to hide global UI Actions is to create your own with the same action name and put a condition on it that it will never show, then you hide the global button as well and you don't need to edit the global one either. Might need to keep your ui action at a lower order to make it work as well.



//Göran