How to change the color of background of a label within a form??

ranadip1
Kilo Explorer

How to change the color of background of a label within a form?? by default it is ash color. Any ideas?

1 ACCEPTED SOLUTION

Ashish Kumar Ag
Kilo Guru

var e = gel("label.table name.Field Name");


    e.style.backgroundColor = 'Color Name';



It will work.


View solution in original post

11 REPLIES 11

Here is the original page that Solutioner Now got this code from: » Modifying the Label of Form Fields With Client Scripts


m_servicenow
Kilo Contributor

Hi Ranadip,



As Bhavesh suggested thats good but simply you can also do the help of personalize style. Steps are like this


Right click on the label and personalize style and write style as below:



Capture.PNG


Thanks,


Mukesh


This will change the background color of value of Number not the Label of number


Ashish Kumar Ag
Kilo Guru

var e = gel("label.table name.Field Name");


    e.style.backgroundColor = 'Color Name';



It will work.


Where do you put that?