Blog

Header Message for ServiceNow

Add a header message to ServiceNow to notify users of ServiceNow Updates, critical incidents or anything you need your ServiceNow users to be aware of.

If this looks familiar, the idea is borrowed from the old ServiceNow HI site and adjusted to be a UI Script.

UI Script: Informational Message
Global: true
Active: true
Script: 

addLoadEvent(function(){
try{
if(g_user.hasRoles()){
//Knowledge Message
var knowledgeMessage = "<img src='warning.pngx' width='15' height='15' style='margin-right: 5px;' /><a target='gsft_main' href='$knowledge.do?'id='knowledgeMessageText' style='margin-right: 20px; font-size: 100%; color: #000;text-decoration: underline;'>Recent ServiceNow Updates</a>"; //);
$('textsearch').insert({before:knowledgeMessage});
}
}catch(e){}
});

This is just an example. You could change this to add any type of message or link.