Hide 'global ui action- delete' in custom application

Purvi Kotadiya
Giga Expert

I have scoped table and on the default form view there is global 'Delete' button. I would like to hide that button for all the users. 

 

I have tried to use 'UI action visibilty' tab but it's not working for default view. How to hide that? 

 

Can someone help me out here?

1 ACCEPTED SOLUTION

Tanushree Maiti
Mega Patron

Hi @Purvi Kotadiya 

 

I will suggest you to update/append the condition of  Delete UI action so that it will be hidden.

 

e.g  current.geTableName() != '<your_table_name>'

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

10 REPLIES 10

Shruti
Giga Sage

Hi

Check the delete ACL on the scoped table. Modify the roles/conditions such that users do not have delete rights. Servicenow automatically hides the delete button

 

Check this artlce for alternate approach - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0692665

Ankur Bawiskar
Tera Patron

@Purvi Kotadiya 

I will recommend not to do anything with the Delete button

why not restrict the Delete ACL on your table?

If Table.None DELETE ACL -> Fails -> They don't see the button

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hello @Ankur Bawiskar , Thanks for the response. I gave the admin role in delete ACL but normal user still able to view the button.

@Purvi Kotadiya 

where? In native or workspace?

share ACL config screenshots

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader