Can a Check box be customized with colors

midde2
Giga Contributor

Hi Everyone,

I have one request to set the colors for the Check box fields .

Whenever user checks on the below checkboxes the color should be red for reporting and green for planning.

Is it possible to have like that.. Please suggest me if anyone has any idea on it...

 

 

Thanks,

Midde.

1 ACCEPTED SOLUTION

Trupti6
Tera Expert
4 REPLIES 4

Pedro Lopez
Kilo Guru

Hi,

Yes, you can modify the HTML element by getting the ID and then you can add color on it. Example:

 

document.getElementById(< html element id >).style.backgroundColor = 'red';

 

Hope this helps,

Pedro Lopez

Could you please explain it in detail how to achieve it??

 

Regards,

Midde

Trupti6
Tera Expert

Hi,

Please check with below link,

https://www.servicenowguru.com/system-ui/field-styles-service-catalog-variables/

 

Thanks,

Trupti S.

midde2
Giga Contributor

Hello,

 

Can it be possible to make when these are approved then they change color.

 

That means for example for reporting the approver is some 'X'- need some color for reporting

And for planning approver is 'Y'- need some color for planning.

find_real_file.png

Please suggest me if any ideas on it....

 

Regards,

Midde.