Is there a way to add a style to a checkbox field?

Laurie Marlowe1
Kilo Sage

Hello,

I am trying to add a style to a checkbox field.  When the box is checked, I want the check-mark to be bold and red.  I added CSS, but nothing seems to change the checkbox style.

color: red;

font: bold;

Thanks,

Laurie

 

 

3 REPLIES 3

ScienceSoft
Tera Guru

1. Check in your list personalization setting whether you using Modern coloring or not

ScienceSoft
Tera Guru

You can achieve this using Client Script:

g_form.getControl('checkbox').parentNode.style.color = 'red'

just as it was mentioned here:

https://community.servicenow.com/community?id=community_question&sys_id=c5f117eddbdcdbc01dcaf3231f96193d

Laurie Marlowe1
Kilo Sage

Is there a way to do this without using g_form.getControl?  That will not work on the Service Portal.

Thanks,

Laurie