- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2024 07:18 PM - edited 11-10-2024 07:18 PM
Hello everyone,
After my instance was versioned from Vancouver to Xanadu, my error message field display was no longer red but black as shown in the picture.
Does anyone know the reason why and how to fix it? Please help me.
Thank you so much.
Here is my code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2024 06:11 PM
Hi @Hitoshi Ozawa ,
Thanks for helping me and I apologize for the late response.
ServiceNow responded to me that it was not an issue. I also found a solution which is to create Catalog Client Script and use the code below for handling DOM:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 12:46 AM
@Dinh Nguyen Check branding color.
- "Service Portal" > "Service Portal Configuration".
- Select "Theme Colors" tab.
- Check color that's assigned to "Danger"
- If necessary, click on "Reset Changes" to revert to default
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 01:58 AM
Hi @Hitoshi Ozawa ,
Thanks for responding to me.
I tried your solution, but it doesn't work.
I noticed this happens to Portal ESC but for other Portals like Service Portal, the error message is still red.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 04:14 PM
@Dinh Nguyen Have you tried if changing the type to "warning" changes the color? If it doesn't, there may be some other script running. Contact NowSupport because it may be a bug.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 10:17 PM
Hi @Hitoshi Ozawa, I tried both 'info' and 'warning', all works except 'error'.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 11:55 PM
@Dinh Nguyen Checked the generated html. It seems like css for class "bg-error" is to just change the color of the text without changing the background color. If I change it to "bg-warning" or "bg-info", the background color changes. It's either a bug or ServiceNow's spec. Need to ask NowSupport to determine which it is.
Nevertheless, to make the background color red,
- Go to "Service Portal" > "Pages"
- Search "ID" = "sc_cat_item"
- In "Page Specific CSS", enter
.form-group .bg-danger { background-color: #FF0000; color: #FFFFFF; }
Execution result: