We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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.

2 ACCEPTED SOLUTIONS

@PreethiG6447769 

it worked fine for me

see below -> New button is gone when I checked that Omit new button checkbox

share your config screenshot

AnkurBawiskar_0-1770733360339.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

@PreethiG6447769 

in the New roles field, give HR Admin role

Don't use script

AnkurBawiskar_0-1770795311187.png

 

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

12 REPLIES 12

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
Kilo Sage

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  ||  10x 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.