How to add text in header as title?

Al-jhon
Kilo Sage

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
}
}




Aljhon_0-1739859079100.png

 

3 REPLIES 3

Vishwa Pandya19
Mega Sage

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-display-the-service-portal-banner-title/...

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.

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?

Aljhon_0-1739860542821.png

 

hey @Al-jhon ,

 

check out below link:

https://www.servicenow.com/community/next-experience-articles/workspace-app-shell-ux-page-properties...

 

If my answer helped you in any way please mark it as correct or helpful.