- 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
‎07-12-2017 10:04 PM
Thanks Dion,
So as per your understanding, one portal can only contain a single Header Menu. So if it is the main logic behind it then it is fine for me.
But if you find any kind of updates for this one then please let me know.
Thanks,
Saptashwa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2017 10:10 AM
Hi Dion
Can you please elaborate further on how you were able to do this? Did you add $sp.getParameter("id")=="lsm_sc" to the Condition field on the Menu Item definition field, or did you add it as part of the code in the Server Script section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2018 01:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2019 11:41 AM
This helped me too. Thanks for posting this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2020 08:37 AM
Hi I tried this but not working. Any specific step we have to do?