Dynamically disable Delete option from drop-down action list on List view

Boris Weisman
ServiceNow Employee
ServiceNow Employee

Hi,

 

I need to disable the "Delete" option of the "Actions on selected rows" dropdown in the List view when a user selects records and at least one of the records meets some predefined condition (for example: a field exists and is not empty).

 

I cannot use server side code (BRs or ACLs), I need option to implement this on client side.

Is it possible?

Thanks in advance.

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

You need to create a Delete UI action with the same action name as the out of box 'delete_checked' and add your condition to the Delete UI action. That would disable delete for rows which doesn't meet the criteria.


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

1 REPLY 1

SanjivMeher
Kilo Patron
Kilo Patron

You need to create a Delete UI action with the same action name as the out of box 'delete_checked' and add your condition to the Delete UI action. That would disable delete for rows which doesn't meet the criteria.


Please mark this response as correct or helpful if it assisted you with your question.