how to change the button color?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2016 02:54 AM
I want to change the color of all buttons with in the instance.
How this can be done?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2016 05:40 AM
If you are using Geneva or later with UI16, you should go to System UI> Themes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 10:13 AM
Chuck,
I want to change the button colors only on my application and not universally. To change header we would need to edit heisenberg theme and that would impact the entire server. Not ideal.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 01:03 PM
ServiceNow have a supported way to configure button colors at present.
I invite you to open an enhancement request! Our product managers DO listen.
Enhancement requests: Tell us how you would improve the ServiceNow product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2017 05:12 PM
var items = document.getElementsByTagName('button');
for(var i=0;i<items.length;i++){
if(items[i].innerHTML.indexOf('Add') > -1){
items[i].style.backgroundColor = "#32CD32";
items[i].style.color = "#FFFFFF";
}
if(items[i].innerHTML.indexOf('Add Types') > -1){
items[i].style.backgroundColor = "#32CD32";
items[i].style.color = "#FFFFFF";
}
if(items[i].innerHTML.indexOf('Submit') > -1){
items[i].style.backgroundColor = "#32CD32";
items[i].style.color = "#FFFFFF";
}
}
We use above on load client script to change the color of the button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2017 10:11 PM
Hi,
Below links may be useful:
https://www.servicenowguru.com/scripting/client-scripts-scripting/change-form-button-color/
Set Colour of Unique Form Button
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke