How to make the Label in service portal red

anuravi23
Tera Contributor

Hi I have a label "Please Make attachment mandatory" and I need to display this text in red. Can anybody please let me know how I can achieve that

10 REPLIES 10

MKelly83
Giga Expert

Hi try creating an on load client script 

 

function onLoad() {

 

var Label = g_form.getLabel('u_llabel_name');

 

Label.style.color= 'red';

}

 

** sorry missed the portal part why not add to the maintain item description field which is a html field or if variable is label just add the html tags in the question field for example <FONT color=red><STRONG><U>Please Make attachment mandatory</U> </STRONG></FONT>

Allen Andreas
Administrator
Administrator

Hi,

Is this with a specific widget? Can you give a bit more details? Screenshot even?


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

its just a label. I need to display label text in red

Tyler Herman
Kilo Guru

Hello Anuravi23,

 

I'm going to second what MK83 said above; You should consider using the description field on the catalog item. This is an HTML field and supports making text bold, italic, underlined, red, green, etc. There isn't an easy way to make a single label a different color on the portal today.

 

Please mark this post "Helpful / Answered" if this helped you.