-
Tom_StalleyAsked on June 27, 2024 at 9:25 AM
Hello, is there any way to change the color of the flat checkbox when unchecked? I'm adding a lot of rows to my form and would like to contract rows with colored backgrounds, but whatever color I choose I need to change the checkbox to white.
Page URL: https://form.jotform.com/241783252969065 -
Joeni JotForm SupportReplied on June 27, 2024 at 10:33 AM
Hi Tom,
Thanks for reaching out to Jotform Support. You can Inject this Custom CSS Code in your Flat Checkbox Box Widget.
.icheckbox_flat-grey {
background-position: 0 20px !important;
border: 1px solid #B3BFBF;
border-radius: 4px;
}
.icheckbox_flat-grey.checked {
border: 0px !important;
background-position: -22px 0 !important;
}
Let me show you how:
- In Form Builder, select the Flat Checkbox Widget and click the Wand icon.
- Go to the Custom CSS tab, and add the Custom CSS Code.
- Then, go to the General tab, select Grey in a Color Scheme section, and change the Font Color to #FFFFFF.
- Click Update Widget.
In your existing CSS Code under Form Designer, locate this code:
[data-css-selector="id_13"] {
width: 75px;
background: #d3d3d3;
}
Change the background color to #FFFFFF.
Let me show you how:
- Click the Paint Roller icon on the upper right side.
- Go to the Style tab, scroll down to the Inject Custom CSS, and locate the code above.
- Change the background color to #FFFFFF.
Give it a try and let us know how it goes.