How to show /Hide 'Request something 'in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago - last edited 4 hours ago
Hi All,
Servicenow Portal 'Request something' should be aviabale if logged in ITIL user is belongs to Claims Group and when one Specific system property is TRUE .
if Person not belongs to Claims group , for them it should be available as regular like others . no limitations show always .
please let me know if it is possible ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hello @Supriya25 ,
This is an OOTB widget called Icon Link.
If you have a requirement to conditionally show/hide an icon or request option based on whether the logged-in user belongs to a particular group, you can clone the OOTB Icon Link widget.
In the cloned widget, you can use ng-if to control the visibility based on the user's group membership.
<div ng-if="data.showIcon"> //code of widget </div>
You can then add the cloned widget to the required location on the Index page instead of using the OOTB Icon Link widget.
If this helps you then mark it as helpful and accept as solution.
Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Thanks Aditya,
Let me try this solution and get back to you
