Is there a way to add a style to a checkbox field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 02:06 PM
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
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 02:45 PM
1. Check in your list personalization setting whether you using Modern coloring or not

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 02:54 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2018 08:32 AM
Is there a way to do this without using g_form.getControl? That will not work on the Service Portal.
Thanks,
Laurie