- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2016 09:45 PM
Can we have the approval buttons coloured like they currently are in production?
Fuji:
Calgary:
I think the red and the different green helps see the right option. There is a tendency to click the update button by mistake when they are all dark green.
#
Please help me Fuji also we need different colors.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2016 10:03 PM
Hi Naresh ,
Try this
You can use this script in an 'onLoad' client script on the table of your choice. This example should be used on the 'Approval' table.
function onLoad() {
//Change the color of the 'Approve' button to green
changeButtonColor('approve', '#00CC00');
//Change the color of the 'Reject' button to red
changeButtonColor('reject', '#CC0000');
}
function changeButtonColor(buttonID, backgroundColor) {
try{
//Find the button(s) by ID and change the background color
$$('button[id=' + buttonID + ']').each(function(elmt) {
elmt.style.backgroundColor = backgroundColor;
elmt.style.color = '#ffffff'; //make the button text white
});
}catch(e){}
}
Ref: Change the Color of Form Buttons - ServiceNow Guru for more details
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 12:12 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 12:20 AM
I need help how to change update color and delete color
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 12:28 AM
Hi Naresh ,
If you want to change the title bar color then goto -->system UI-->UI script click create new .
check the global checkbox true.
add this script:
try {
addLateLoadEvent(changeListBackground);
} catch (e){}
function changeListBackground(){
gel('list_nav_incident').style.backgroundColor = "blue";
}
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 09:28 AM
I tried in my dev instance but its not working.
My instance have 3 domains like global ,top wealth eroupe
Which domain write to the above code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2016 10:42 PM
Naresh,
You should write in Global. I tried and It's working for me. I have added the script of incident form , However you change the field like
gel('list_nav_incident').style.backgroundColor = "blue";//incident
gel('list_nav_problem').style.backgroundColor = "blue";//problem
Thanks