Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Change color of the info message on esc portal servicenow

Harika Thota
Tera Expert

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...

 

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


Hi,

 

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

I want the background color to be orange.

Thanks,

Harika

 

Community Alums
Not applicable

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. 

 

Hi,

 

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

 

Thanks,

Harika