The CreatorCon Call for Content is officially open! Get started here.

How to hide "Delete" Ui Action in classic view but not in UIB. Can some one please help me with this

Amarnadh
Tera Contributor

I have Delete button on sys_template table. How to hide this "Delete" Ui Action in classic view but not in UIB. Can some one please help me with this.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Amarnadh 

I don't think you can control this directly.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

9 REPLIES 9

Amarnadh
Tera Contributor

Amarnadh_0-1758824875802.png

I have excluded few related views but it is not reflecting. Any idea what to be selected for the exclusion. Let's say I wanted to hide it in CSM/FSM workspace or service operations workspace

 

Is this OOB delete button?


Raghav
MVP 2023
LinkedIn

Try this as well:

Go to sys_ux_form_action_layout_item table.

Look for "Delete" action for your workspace/Application and mark that inactive.


Raghav
MVP 2023
LinkedIn

Yes it is OOB Button which is on "sys_template" Table. Show/Hide of delete button is condition based so we can't make it inactive, looks like we should find some API which finds out the user is logged in classic view or workspace view.

Ankur Bawiskar
Tera Patron
Tera Patron

@Amarnadh 

I don't think you can control this directly.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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