Browser Window Title - display task number (e.g. INC0000046)

nikita_mironov
Kilo Guru

Hi
I searched the forum and wiki but with no luck. Is there any tricky way to display the task number in browser window title, i.e. replacing ... with
? Refer to the attached screenshot.

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

I've used this script before. It sets both the number and short description if they are there. You'll need to use this code in a new UI script record under 'System UI -> UI scripts'.



addLoadEvent(setTitle);
function setTitle(){
try{
var num = g_form.getValue("number");
var sd = g_form.getValue("short_description");
}catch(e){
//alert('Error getting title info.');
}
if(num && sd){
top.document.title = num + ' - ' + sd;
}
else{
top.document.title='Service-now.com - IT Service Management Suite';
}
}


View solution in original post

10 REPLIES 10

sylvain_hauser
Tera Contributor

Excellent! Works great