Hello!
I wanted to have a custom background image used for checkboxes. I have achieved it this way
.charsheet input[type=checkbox] {
display:none;
}
.charsheet input[type=checkbox] + label
{
background-repeat: no-repeat;
background-size: contain;
height: 100%;
width: 100%;
display: inline-block;
padding: 0;
}
.charsheet input[type=checkbox]:checked + label
{
background-repeat: no-repeat;
background-size: contain;
height: 100%;
width: 100%;
display: inline-block;
padding: 0;
}
Then when I use it, It works
<h4>Wounded:</h4><input type="checkbox" id="attr_wounded" name="attr_wounded"/><label for="attr_wounded"></label>
![]()

![]()

but when I apply the same to a checkbox in a repeating section, it does not work. It is unclickable. BUT it does display the background image AND reflects whether it is checked or unchecked. You only can't click it to change it
<fieldset class="repeating_languages">
<div class="language">
<input type="text" name="attr_language">
<input type="checkbox" name="attr_spoken" id="attr_spoken"/><label for="attr_spoken"></label>
<input type="checkbox" name="attr_written" id="attr_written"/><label for="attr_written"></label>
</div>
</fieldset>
![]()

Why doesn't it work in the repeating section? I have tried changing the id but that did not work. Alternatively, do you have a different way to get a background image applied to the checkbox?