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






6 REPLIES 6

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