- My View
Can someone brief me how to change the background color of "global text search" box?
I don't know if you already know but there is a system configuration page where you can adjust the different colors of various elements on the main ServiceNow harness. Do this by typing 'Basic Configuration' in the navbar. If you're using the new UI 16, click the 'Basic Configuration UI16' module. Unfortunately the global text search box is not one of the options. Here's the official doc:
If you look closely at the global text search input element you'll notice that the background css is transparent. So the background color is actually just whatever the top 'Header Background Color' is.
Please let me know if my comment was helpful and mark it accordingly (like, helpful, correct) so that others can be helped.
John Oliver Mendoza
Software Engineer | ServiceNow
This can be done simply by Writing a UI Script as mentioned below:
Make Sure the Global Checkbox is marked True in the UI Script Form page as shown in the Screen shot.
Hope this helps.Mark the answer as correct/helpful based on impact.
Just a word of caution before using this approach. This was done in our environment, and we experienced unintended consequences on a date field on project tasks when viewed from the planning console (an error displayed below the field every time the form was opened). Disabling this global script took care of the error. Seems totally random, hence my word of caution. Without regression testing basically everything in your system, it's near impossible to know the effects of a global UI script that seems relatively innocuous.
I'd be glad for different points of view, but that's the way I'm seeing it at this point.
Is it also possible to change the background color based on theme you are using or connect it to a theme?