Condition script to restrict the visibility of a menu item

alipia123
Tera Contributor

hi I'm looking for the best condition script to restrict the visibility of a menu item on the service portal- either to those who meet a certain user criteria or those who have a specific field on their user record set to true

 

would anyone please be willing to share what they have used?  thankyou 

1 ACCEPTED SOLUTION

@alipia123 

image is not clear.

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

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@alipia123 

you can use gs object in condition field

How to hide a submenu in a Portal based on a user condition 

Write a Condition that Hides Items in SP Menu 

💡 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

@alipia123 

Hope you are doing good.

Did my reply answer your question?

💡 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

alipia123
Tera Contributor

Hi @Ankur Bawiskar it didnt work for me I tried using the code in this image 

alipia123_0-1773214672381.png

with the related script include

@alipia123 

image is not clear.

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