Hide New button

PreethiG6447769
Tera Contributor

Hi Team,

 

We wanted to hide New button in HR cases naive view,

But no in HR workspace

 

PreethiG6447769_0-1770724387807.png

 

 

From where this action comes from, I tried to deactivate from UI action but its not working.

5 REPLIES 5

Nilesh Pol
Kilo Sage

@PreethiG6447769 Can you verify with mentioning the UI action condition to:

current.getTableName() == 'hr_case' && gs.hasRole('your_specific_role')

yashkamde
Tera Guru

Hello @PreethiG6447769 ,

 

try checking the workspace checkbox :

Screenshot 2026-02-10 173221.png


and uncheck the form button checkbox on UI Action form :

Screenshot 2026-02-10 173239.png

 

If my response helped mark as helpful and accept the solution.

@yashkamde 

are you sure this approach will work and hide it only for HR Case table and won't impact other tables?

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

No, this was the global approach I suggested for :

"to hide New button in HR cases naive view,

But no in HR workspace"

Also for not impacting other tables we can add condition : "current.getTableName() == 'hr_case'"
I guess this would work and won’t affect other tables.