We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Change color of the info message on esc portal servicenow

Harika Thota
Tera Guru

Hi,

 

I have a requirement to change background color of the info message and I'm calling it from onload client script.

 

Thanks in Advance!!

Harika

8 REPLIES 8

GlideFather
Tera Patron

Hi @Harika Thota,

Please share your client script to get the full context and when you say change colour - from what colour to what colour?

 

 

if it is on portal using client script, then it's:

  • g_form.addInfoMessage('This text will be blue');
  • g_form.addErrorMessage('This text will be red');

Unfortunately there's no easy way how to use a custom colour for this.

 

Zurich brought 4 tones but I never happened to have it working ok...

 

_____
100 % GlideFather experience and 0 % generative AI

Hi,

 

We are still on Yokohoma. On Esc portal, background color is green.

I want the background color to be orange.

Thanks,

Harika

 

miftikhar20
Kilo Patron

Hi @Harika Thota ,

You may find the following community posts helpful:

If my response helped, please mark it as the accepted solution so others can benefit as well. 

 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Hi,

 

I tried the third link which you send and didn't worked for me.

 

Thanks,

Harika