- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 08:31 AM
How to hide ui button on particular role like whose having itil can see the button other wise can not see the button.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 01:13 AM
Hi @AJAYKUMAR G
In the condition field, you can write something like this-
!gs.hasRole('sn_customerservice.customer') && gs.hasRole('itil') && current.isValidRecord();
Regards,
Amit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 08:36 AM
Hi,
The ui actions have a requires role section, add the role you want to show this ui action to and save.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 12:52 AM
I tried but it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 02:52 AM
This is the way it should work, if this is not working then you need a HI Ticket.
How are you testing ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 01:13 AM
Hi @AJAYKUMAR G
In the condition field, you can write something like this-
!gs.hasRole('sn_customerservice.customer') && gs.hasRole('itil') && current.isValidRecord();
Regards,
Amit