How to make variable names bold and red?

SNow35
Giga Guru

Hi All,

How to we make variable names bold and red. These variables are created for catalog items.

Thanks in advance.

6 REPLIES 6

Rajesh Mushke
Mega Sage
Mega Sage

Pradeep J
Kilo Guru

Hi ,


First you need to set the   sys_properties glide.ui.escape_text to 'fasle'


then apply the blow line it will work


<font size=4 color='green'><i>Name</i></font>  


Var1.PNGVar2.PNGVar3.PNG



Thanks


Pradeep D J


PS: Hit like, Helpful or Correct depending on the impact of the response


Hi Pradeep,

I Tried the solution u provided above it is working fine in the native view but, when in the portal it is not working as expected.

 

Screen shots of Portal view  & Native view 

find_real_file.pngfind_real_file.png

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

You can also try this:



g_form.getControl('VARIABLE_NAME').setAttribute('style', 'font-weight: bold;color:red');