Show Service Portal Menu on a specific page

ddiroma
Mega Expert

I am trying to add a Service Portal menu to only a specific page of my Service Portal, but I am not having much luck finding a condition that will work. Has anyone done anything similar or do you know what the condition should be. In this example we will say the page id is lsm_sc.

1 ACCEPTED SOLUTION

ddiroma
Mega Expert

I ended up logging a ticket with Service-Now and they pointed me in the direction of $sp. They normally don't help with something like this, but because the documentation is sparse he helped me out. In this case he let me know I should use the .getParameter and use the ID parameter. In the case of my example the condition would be:


$sp.getParameter("id")=="lsm_sc"


This allowed the menu to show only when the page had the id of lsm_sc and did not show otherwise. Thanks again for all those that replied.


View solution in original post

16 REPLIES 16

ddiroma
Mega Expert

Saptashwa,


If I get more information I will let you know.
Thank you,




Dion


Thank you Dion.