The CreatorCon Call for Content is officially open! Get started here.

How to display green text and background instead of blue text and background for addInfoMessage?

dianemiro
Kilo Sage

Hi Everyone,

I am displaying an informational message from Server Script. How can I make this in green instead of blue?

Regards,
Diane

1 ACCEPTED SOLUTION

dianemiro
Kilo Sage

Thank you all! The one provided by Deepankar is the same as Mohith and this only change the font color but not the background color. I ended up adding a Page Specific CSS by going to the Page Designer. Closing this thread!

find_real_file.png

View solution in original post

9 REPLIES 9

Hello @Diane Miro ,

i feel in native view i was not able to change the back ground of the  box but yeah in the above response it must have changed the text color .

If it is for portal we have a work around 

please follow steps mentioned by @Thameem Ansari S N  in the below post this should help if you are in portal

https://community.servicenow.com/community?id=community_question&sys_id=5c895d94db450190bb4a474d1396...

Please mark my answer correct if it helps you

But we can try these as alternatives 

g_form.addWarningMessage = yellow

g_form.addErrorMessage = red

g_form.addInfoMessage = blue

Thank you, Mohith! This is what I ended up doing since we want all messages for this page with green font color and background. Thanks again for your help!

@Diane Miro sure thanks. I think you marked your answer as correct my mistake.

if my answer helped can you mark it correct

dmathur09
Kilo Sage

Hi Diane,

Refer - https://community.servicenow.com/community?id=community_question&sys_id=3d0ff47c1b367850a59033f2cd4bcb43

Regards,

Deepankar Mathur

dianemiro
Kilo Sage

Thank you all! The one provided by Deepankar is the same as Mohith and this only change the font color but not the background color. I ended up adding a Page Specific CSS by going to the Page Designer. Closing this thread!

find_real_file.png