How to hide NEW button or ANY button in list view for any table on the basis of view(s)!!!
Hey there!
Ever encountered an issue or a requirement where you have to hide NEW button on the list view on the basis of view(s) from all the users for a specific table(s)!!!
Here is a quick solution to this issue/requirement without any need to script it.
Let's take Incident table to show how this works but it applies for every table.
Before Changes are made
1. Go to UI actions and select the desired UI action(here it is "New" Button on "Self-Service" view).
2. In the related list of that particular UI Action, in UI Action Visibility tab.
3. Click on "Edit" button and select the desired view you want that NEW button shouldn't be visible and then click save.
4. Open the record created in a new tab and change "Visibility" field from "Include" to "Exclude" and click update.
And you are DONE!!!
Reload the list view and see the magic.
After Changes are made
Try this out and let me know what do you think about it in the comments section.
https://www.servicenow.com/community/now-platform-articles/how-to-hide-new-button-or-any-button-in-list-view-for-any-table/ta-p/2314024