Palak Gupta
Tera Guru
Tera Guru

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

find_real_file.png

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.

find_real_file.png

3. Click on "Edit" button and select the desired view you want that NEW button shouldn't be visible and then click save.

find_real_file.png

find_real_file.png

 

4. Open the record created in a new tab and change "Visibility" field from "Include" to "Exclude" and click update.

find_real_file.png

And you are DONE!!!

Reload the list view and see the magic. 

After Changes are made

find_real_file.png

Try this out and let me know what do you think about it in the comments section.

If anyone is wondering what happens if "Visibility" field in UI View Action form is left as "Include", then stay tuned for that!!!

Comments
Community Alums
Not applicable

Very Helpful
and great work done by you 
thanks

Snehal_Kolhe
Tera Contributor

Hi @Palak Gupta ,

How to make it specific for ITIL users only, that users having ITIL role shouldn't be able to view NEW button in Self Service view, rest users should be able to see New on any view.

Palak Gupta
Tera Guru
Tera Guru

Hello @Snehal_Kolhe ,

So for which role you want to make it visible?

 

Lkharat
Tera Expert

Very Helpful

Thanks @Palak Gupta 

Joakim St_ckel
Tera Expert

Hi! 
How would you achieve to hide the "New" button on Global table? With no specific View... I need to hide this for users with a specific Company only.
The only conditions I may apply, are Record Conditions, Client Conditions and Script Conditions.
I tried to set view != (company specific view), but that didn't work...
Is there a Script Condition that may be applied for this?

saikrishnag3019
Tera Contributor

Hi @Palak Gupta , what is users should create record but not from new button?

Version history
Last update:
‎06-23-2022 08:24 AM
Updated by: