How to show /Hide 'Request something 'in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks 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
3 weeks ago
please use only script
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks 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
3 weeks ago
Thanks Aditya,
Let me try this solution and get back to you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @Supriya25
Please try it in your PDI.
- Install Plugin com.glide.service-portal.user-criteria
- Set value of system property: glide.service_portal.user_criteria_enabled to True
3. create your user criteria as per your requirement
https://devxxxxxx.service-now.com/now/nav/ui/classic/params/target/user_criteria_list.do
4. From Widget instance or widget instance link > can view tab ->Edit ->add your User criteria
https://devxxxxxx.service-now.com/sp_instance_link.do?sys_id=f4c794b2cb20120000f8d856634c9cea
5. Save and test it by impersonating correct user
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Tanushree Maiti ,
thanks,
can we hide this specific sp_instace_link option based on system property && role combination ?
any possibility do we have ?
