Hide New button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Team,
We wanted to hide New button in HR cases naive view,
But no in HR workspace
From where this action comes from, I tried to deactivate from UI action but its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
@PreethiG6447769 Can you verify with mentioning the UI action condition to:
current.getTableName() == 'hr_case' && gs.hasRole('your_specific_role')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hello @PreethiG6447769 ,
try checking the workspace checkbox :
and uncheck the form button checkbox on UI Action form :
If my response helped mark as helpful and accept the solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
are you sure this approach will work and hide it only for HR Case table and won't impact other tables?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
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.
