Hide tabs with roles in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 09:31 PM
I want to hide these tabs in Workspace if users don't have specific roles. How can I do it in ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 10:39 PM
Hi @sieusaopolo15 ,
These are Related lists on the record.
If you want to hide those , then you can use a UI Policy, Now in Script section check Run Scripts button make it "Run scripts in UI type" All in which add a below code in Execute if True Script Editor
UI Policy sample Script:
//execute if true
function onCondition() {
if (g_user.hasRole('cat_man')) {
g_form.showRelatedList('REL:dfb2edae1b50e51069fecddf034bcbc7');
}
//execute if false
function onCondition() {
g_form.hideRelatedList('REL:dfb2edae1b50e51069fecddf034bcbc7');
}
If it's not working on workspace view, the you can add additional line of code "
if (view == 'workspace'){
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 11:54 PM
Hi @Community Alums ,
I tried your suggestions but it is not working, It seems like this is not related list