Hide menu items in header widget on the login page and display after user is logged in

Navneet Arora
Mega Expert

Hi All,

I have a custom service portal and when user try to access the portal using url and portal suffix: https://<vendor-name>.service-now.com/<portal-suffix>

But on the login page , I want to hide the header menu items as the user is not logged in yet. And it should display once the user has successfully login into portal not before that.

find_real_file.png

1 ACCEPTED SOLUTION

Navneet Arora1
Kilo Expert

Add gs.isLoggedIn() in the condition of Menu Item and it will redirect accordingly

View solution in original post

2 REPLIES 2

RaghavSh
Mega Patron

in the header menu conditions apply condition "gs.isLoggedIn()"

 

find_real_file.png


Raghav
MVP 2023
LinkedIn

Navneet Arora1
Kilo Expert

Add gs.isLoggedIn() in the condition of Menu Item and it will redirect accordingly