- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 09:55 PM
Hi
How do i change the background color for info message (Normally we get info message in blue color but in my case i need to get it in different color).
Could you please suggest for my approach
Regards
Aarya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 06:12 AM
Hello Aarya,
There are additional message types that you can use:
g_form.addWarningMessage = yellow
g_form.addErrorMessage = red
g_form.addInfoMessage = blue
you can change the font color using the following script:
var message1 = 'TEST';
var message2 = message1.fontcolor("red");
g_form.addInfoMessage(message2);
You can also use text background high-lighting such as:
var message = '<b><p style="color:black;background-color:orange;">';
message+='TEST';
g_form.addInfoMessage(message);
or
var message = '<div style="background-color:blue;color:white">Assignment group changed.<br/>';
g_form.addInfoMessage(message);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2025 01:21 PM
Hey man , thank you for keeping it straight to the point with the answer.
Super helpful thank you will look into annotations or sticking with the message.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 10:22 PM
Hi aarya,
Create a new annotation and place it below the field you would like to.
in HTML, you can add css for color change.
Also, refer to :https://community.servicenow.com/community?id=community_question&sys_id=f4c50721db1cdbc01dcaf3231f9619e6
Please mark my answer as Correct & Helpful, if applicable.
Thanks
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2021 10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2022 06:12 AM
Hello Aarya,
There are additional message types that you can use:
g_form.addWarningMessage = yellow
g_form.addErrorMessage = red
g_form.addInfoMessage = blue
you can change the font color using the following script:
var message1 = 'TEST';
var message2 = message1.fontcolor("red");
g_form.addInfoMessage(message2);
You can also use text background high-lighting such as:
var message = '<b><p style="color:black;background-color:orange;">';
message+='TEST';
g_form.addInfoMessage(message);
or
var message = '<div style="background-color:blue;color:white">Assignment group changed.<br/>';
g_form.addInfoMessage(message);
Hope this helps. Please mark the answer as correct/helpful based on impact.
Hope this helps. Please mark the answer as correct/helpful based on impact.