How to add widgets to the header menu in esc portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2023 01:38 AM
I want to add a weather widget in the header of the Employee Center portal. But in the menu options there isn't any OOB way to add widgets in the portal header.
Can anyone help regarding this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2023 01:40 AM
@Bharat Singhi In the menu option add the page and to that page add your widget.
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2023 01:44 AM - edited ‎01-02-2023 01:46 AM
Thanks @jaheerhattiwale for your reply!
I want to show the weather and location of the logged in user in the header menu and not redirect them to a different page to see that so this solution won't be helpful in my case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2023 01:56 AM
@Bharat Singhi Ok Got it.
Go to "Service Portal > Portals"
Open your portal record
Open main menu record
In the "Main menu" record there is a widget added
Open that widget, if you need the change for all the portals using this menu then update the same widget (if its editable) or clone widget and add it to the main menu record.
Add the following code to widget HTML side as shown in image below
<div>
<widget id="YOUR WIDGET ID HERE"></widget>
</div>
<div>
LOCATION INFO HERE
</div>
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2023 09:05 PM
@Bharat Singhi Did you try this?
ServiceNow Community Rising Star, Class of 2023