- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 02-07-2020 09:16 AM
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 Message
var knowledgeMessage = "<div style='text-align:left; float: left ; color : red; font-size : 15px'>Announcement!!(line1) <br>Announcement!!(line2 optional) with any links needed <a target='_blank' href='https://www.google.com/' font-size: 100%; color: #000;'>Link 1</a> and <a target='_blank' href='https://www.google.com/' font-size: 100%; color: #000;'>Link 2</a></div>";//);
$('textsearch').insert({before:knowledgeMessage});
}
}catch(e){}
});
This is how it looks:
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
i need it for UI16 any update
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Update ,UI script or any plugins regarding for Banner Announcement or Header info message .