How to hide UI Action on vendor assessment portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 01:29 AM
Hi All,
I have been digging through servicenow doc on hiding ui action on svdp portal, but no use... I have to restrict delete contact ui action only for admins....I have added the role in 'requires roles' section and added the condition as well...gs.hasRole("admin") in the ui action but still the button is visible for users with vendor_contact role....could anyone suggest me how can I fix this ?
Any kind of help is greatly appreciated.
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 06:21 AM
Hi @Utkarsha ,
Go to UI actions list from Navigator and look for the below record :
Then in the condition field add "Admin" as has role, :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 06:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2024 07:23 AM
Hi @Utkarsha ,
How did you modified the server side script? I believe it's not editable unless you clone the widget.