Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to show /Hide 'Request something 'in Portal

Supriya25
Tera Guru

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 ?

Supriya25_0-1789993009913.png






10 REPLIES 10

@Supriya25 

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! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Aditya_hublikar
Giga Sage

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.

 

Aditya_hublikar_0-1789993965964.png

Aditya_hublikar_1-1789993995838.png

Aditya_hublikar_2-1789994061210.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya

Thanks Aditya,

Let me try this solution and get back to you 

Tanushree Maiti
Tera Patron

Hi @Supriya25 

 

Please try it in your PDI.

 

  1. Install Plugin com.glide.service-portal.user-criteria
  2. Set value of system property: glide.service_portal.user_criteria_enabled to True

TanushreeMaiti_0-1790006934971.png

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

TanushreeMaiti_1-1790011211041.png

5. Save and test it by impersonating correct user

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Hi @Tanushree Maiti ,

thanks,

Supriya25_0-1790174352054.png



can we hide this specific sp_instace_link option based on system property && role combination ?

any possibility do we have ?