Remove "Add" UI Action from the custom related list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 06:23 AM
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")&&

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 06:35 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 08:15 AM
Hello,
There is no any disable button. could you please reverify again and if possible provide the screenshot
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 08:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 09:13 AM
I tried that, However omit edit button get disables here as we can see in the screenshot