logo

NJP

Header Message on Banner

Import · Feb 07, 2020 · article

Hi ServiceNow Community members,

I would like to share how to add a customized banner message for any announcements needed for ServiceNow customers in the company.

Hope this helps !!.

And this is only supported on UI15. Any inputs for UI16 would be great :).

Write a UI Script:

addLoadEvent(function(){try{if(g_user.hasRoles()){//Knowledge Messagevar knowledgeMessage = "

Announcement!!(line1)
Announcement!!(line2 optional) with any links needed Link 1 and Link 2
";//);$('textsearch').insert({before:knowledgeMessage});}}catch(e){}

});

This is how it looks:

image

View original source

https://www.servicenow.com/community/itsm-articles/header-message-on-banner/ta-p/2311934