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

Kalyani Jangam1
Mega Sage
Mega Sage

Hi, In New Global UI action you can use below condition also

(new GlideRecord('Your table name')).canCreate() && !RP.getListControl().isOmitNewButton() && !RP.isRelatedList()

Will this condition be included in the condition of the new UI action?

What kind of effect does it have?

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Any specific reason you created your custom New button on your table?

Was this a customer requirement?

Regards
Ankur

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

https://community.servicenow.com/community?id=community_question&sys_id=59fabdfc1be01590587a11751a4bcb64

 

The linked article above explains why.