- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 06:08 AM
Hello everyone,
How could I change the background-color of the Variables container on the RITM/SCTASK form from this gray color to another one? (Example in the attached screenshot).
I inspected the page a bit with Chrome DevTools and noticed that this component (or HTML element) is a table and has that gray background color that I would like to change or remove? (example in the screenshot below).
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 06:41 AM
this worked for me, but remember using DOM is not recommended.
function onLoad() {
//Type appropriate comment here, and begin script below
var element = document.getElementsByClassName('wide sc_editor');
element[0].style.background = 'orange';
}
Output:
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 06:31 AM
only way is to use DOM manipulation using onLoad client script.
Ensure Isolate Script = False for your client script for DOM to work
This field if not on form, make it false from list layout
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 06:41 AM
this worked for me, but remember using DOM is not recommended.
function onLoad() {
//Type appropriate comment here, and begin script below
var element = document.getElementsByClassName('wide sc_editor');
element[0].style.background = 'orange';
}
Output:
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2025 08:04 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-25-2025 01:19 AM
Hi @Ankur Bawiskar , thank you for the proposed solution, it worked.