Remove "Add" UI Action from the custom related list

akshay jadhav
Tera Contributor

Hello All,

We created a custom related list for the incident table, and the OOB "Add" UI Action appeared here. We need to hide this from this related list only, however there is no option to omit it, and we tried adding code   to the UI Action condition but it did not work. Does anyone have any ideas?

 

Code we tried - !current.related_list.is("sys_id_of_related_list")&&

 

akshayjadhav_0-1728047881152.png

akshayjadhav_1-1728048179786.png

 

akshayjadhav_2-1728048203551.png

 

 

9 REPLIES 9

OlaN
Giga Sage
Giga Sage

Hi,

To do this, right-click the related list header, and select Configure > List Control

Then select to disable the Add button as per your requirement.

Hello,

 

There is no any disable button. could you please reverify again and if possible provide the screenshot 

 

Thank you

The checkbox will not be on the 'add' ui action

as Olan mentioned, right-click on your related list header, and select Configure > List Control and then you will find 'omit edit button' checkbox, make sure it is sent to true


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

 

I tried that, However omit edit button get disables here as we can see in the screenshot

AkshayJadhav1_1-1728058416230.png