Notebook
UI Builder: Create Header
Purpose: How to create a Header for a Portal Experience in ServiceNow UI Builder. The Header is displayed at the top of every page in a Portal Experience.
- Open Experience in UI Builder
- Click “Menu” next to Experience name and logo
- Click “Edit Experience Settings”
- Click “Navigation and menus”
- Under Header, click “Advanced header settings”
- Fill out the form as follows:
- Page: Select the Portal Experience Name
- Name: chrome_header
- Type: json
- Route: leave blank to apply to all routes
- Description: Any description text
- Value:
{ "privatePage": { "searchEnabled": true, "userPrefsEnabled": true, "logoRoute": { "type": "route", "value": { "route": "home", "fields": {} } }, "globalTools": { "collapsingMenuId": 0, "primaryItems": [ { "label": "UserMenu", "icon": "user", "type": "menu", "primaryDisplay": "icon", "value": { "children": [ { "condition": { "roles": [ "admin" ] }, "label": { "translatable": true, "message": "Configure" }, "type": "navigation", "position": 200, "primaryDisplay": "none", "value": { "type": "external", "opensWindow": "true", "value": { "href": "/nav_to.do?uri=/sys_ux_app_config.do?sys_id=c5bbbde2c3121010f46b42583c40dd06" } } }, { "label": { "translatable": true, "message": "Logout" }, "position": 500, "type": "navigation", "value": { "type": "AUTH_ROUTE_BINDING", "binding": { "address": [ "logout" ], "params": { "reload": true }, "default": "/logout.do" } } } ] } } ], "secondaryItems": [] } }, "publicPage": { "menuEnabled": true, "logoRoute": { "type": "route", "value": { "route": "home", "fields": {} } } } }
- Return to UI Builder browser tab by closing the current browser tab
- Click “X” to close the Portal Settings modal
- Click “Open” to test the page header
Special thanks to Ninja Bytes