How to add text in header as title?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 10:10 PM - edited ‎02-17-2025 10:11 PM
Hello All,
I'm trying to add a title on my header but it is not working. See my json format below:
{
"privatePage": {
"chrome_header": {
"type": "header",
"value": {
"text": "THIS IS A TEST TEXT"
}
},
"notificationsEnabled": false,
"searchEnabled": false,
"userPrefsEnabled": true,
"logoRoute": {
"type": "route",
"value": {
"route": "home",
"fields": {}
}
},
"contextualConfigurationItems": {
"enabled": false
},
"globalTools": {
"collapsingMenuId": 0,
"primaryItems": [
{
"label": "UserMenu",
"icon": "user",
"type": "menu",
"primaryDisplay": "icon",
"value": {
"children": [
{
"label": "Configure",
"type": "navigation",
"position": 50,
"primaryDisplay": "none",
"value": {
"type": "external",
"opensWindow": "true",
"value": {
"href": "/nav_to.do?uri=/sys_ux_app_config.do?sys_id=4a1c734573021010e12d1e3014f6a7b8"
}
},
"_roles": [
"maint"
]
},
{
"label": {
"translatable": true,
"message": "Logout"
},
"position": 500,
"type": "navigation",
"value": {
"value": {
"href": "/logout.do"
},
"type": "external"
}
}
]
}
}
],
"secondaryItems": [
{
"type": "h1",
"text": "Vishay Phonebook"
}
]
}
},
"publicPage": {
"actionButtons": [],
"notificationsEnabled": false,
"searchEnabled": false,
"userPrefsEnabled": false,
"menuEnabled": false
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 10:21 PM
hey @Al-jhon ,
You will need to clone the header widget and add custom HTML for the text you want to display.
Below links should be able to help you out:
https://www.servicenow.com/community/developer-forum/how-to-add-text-on-sp-header-menu/m-p/1417464
If my answer helped you in any way please mark it as correct and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 10:35 PM
Hello @Vishwa Pandya19 , i want to do this in my experience Portal App Shell.
and there is a EX Page property for the header.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 11:00 PM
hey @Al-jhon ,
check out below link:
If my answer helped you in any way please mark it as correct or helpful.