- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 04:05 AM
Hi Every one!!!!
I created one new button "plan document team request" in incident form I want to add 'blue' color for the button
I am trying with this code but I couldn't
function onLoad() {
changeButtonColor('plan_document_team_request', '#0000FF');
}
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){}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 08:06 AM
@APV Babu Add one more css for bottom button just like
#plan_document_team_request_bottom {
//Add the color as you added for up button
}
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 08:23 AM
@APV Babu Can you please mark as correct answer
ServiceNow Community Rising Star, Class of 2023
