- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 02:02 PM
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.
Solved! Go to Solution.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 02:08 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2017 07:09 AM
Anil,
Thank you for the reply. I tried that and the menu item shows no matter what page I am on. This seems like it is because the page described isn't locked down and can be seen by the roles snc_internal and snc_external which is pretty much everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2017 12:31 PM
ctomasi - I hope you are well. Do you know how one could accomplish making a Service Portal Menu available only on a specific Service Portal page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2017 02:08 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2017 10:19 PM
Thanks Dion for your valuable article. Your solution is for Menu Item. I have to put the script you have mentioned in the condition field of the Menu Item right?
Another Question:
But if I want to show different menus that mean different header Menus for different pages. Can it be done?
Thanks
Saptashwa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2017 11:27 AM
Saptashwa,
I am by no means an expert on menus in the Service Portal, but it is my understanding that you can only have one menu per portal (I seem to remember my instructor saying this in my Service Portal class). You can change the menu by going to sp_config - Portals - Select your Service Portal name in the Portal Element chart. From there you should see a "main menu" field.
Thank you,
Dion