I want to hide the default "New" button in a particular table

__17
Tera Expert

 

I created my own "new" button in the UI action.
However, there are two "New" buttons because the existing "New" button is displayed.
I thought about deactivating an existing "New" button, but other tables are using the existing "New" button.

I'm looking for a way to hide an existing "New" button only in a particular table.

 

 

 

The existing new button is a "new" UI action with "Normal Lists" in the comments in the "global" table.

1 ACCEPTED SOLUTION

Another option is to go to your table, right click on some of the column headers - configure - list controls. When the for opens, check the Omit New Button Checkbox. Save

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

View solution in original post

8 REPLIES 8

Martin Ivanov
Giga Sage
Giga Sage

go to the New action (global).

Add this red string to the out of the box condition:

(new GlideRecord(current.getTableName())).canCreate() && !RP.getListControl().isOmitNewButton() && !RP.isRelatedList() && (current.getTableName()!='your_table')

 

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

Another option is to go to your table, right click on some of the column headers - configure - list controls. When the for opens, check the Omit New Button Checkbox. Save

Please mark Correct and Helpful if my answer helps you resolve your issue. Thanks!
Martin Ivanov
Community Rising Star 2022


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

"Another option is to go to your table, right click on some of the column headers --config --list controls. When the for open"

I would like to know the above method in detail.
I couldn't do it well.

It's done!