How to make info message font as BOLD

VIKAS MISHRA
Tera Contributor

I am populating info message from the BR and below is the code, could you please help me to make changes in the code so that my info message will be populated as BOLD.

Only my info message not all the info messages of servocenow

 

var message = '<div style="background-color:red;color:white">SLA over 75%<br/>';
gs.addInfoMessage(gs.getMessage(message));

1 ACCEPTED SOLUTION

SaiRaviKiran Ak
Giga Guru

Hi @VIKAS MISHRA  ,

 

Please try below.

 

var message = '<div style="background-color:red;color:white"><b>SLA Over 75%</b><br/>'; gs.addInfoMessage(gs.getMessage(message));

View solution in original post

4 REPLIES 4

SaiRaviKiran Ak
Giga Guru

Hi @VIKAS MISHRA  ,

 

Please try below.

 

var message = '<div style="background-color:red;color:white"><b>SLA Over 75%</b><br/>'; gs.addInfoMessage(gs.getMessage(message));

Twinkle S
Mega Sage
Mega Sage

Hi @VIKAS MISHRA  , 

Use the below

var mess="<b>SLA over 75%</b>"
gs.addInfoMessage(mess);
 
Its working fine.
 
 
Regards
Twinkle Sharma

Samaksh Wani
Giga Sage
Giga Sage

Hello Vikas,

 

Its Better to use CSS style inline in div tag.

 

var message = '<div style="background-color:red;color:white; font-weight:bold;">SLA over 75%<br/>';
gs.addInfoMessage(gs.getMessage(message));

 

Use this Code.

 

If you find it helpful, Plz Mark my Solution as Accept and Helpful, It will help other users as well.

 

Regards,

Samaksh

Samaksh Wani
Giga Sage
Giga Sage

Hello Vikas,

 

Can you plz mark my solution as Accept, As according to some requirement it will help other user as well to find it better.

 

Regards,

Samaksh