I have a problem with checkbox validator.
When i press send button (and checkbox not selected) i have no error with this field(wrong), but if I check and uncheck the checkbox I show error label
Can please help me?
checkbox validator problem
3 replies · opened Sep 20, 2021
Hello,
Thanks for reporting this! There is a Minor Bug with the Checkbox + Validation functionality. Simply add the following CSS Code:
[ch_pre type="css"]input[type="checkbox"]:not(:checked) + label.error {
display: none !important;
}
input[type="checkbox"].error:not(:checked) ~ label.form-check-label,
input[type="checkbox"].valid:not(:checked) ~ label.form-check-label {
color: red;
}[/ch_pre]
and this should definitely fix your issue. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
I have added this code, but not working for me
Hello,
Adding the .form-check-label Class to the `` Tag after the checkbox will fix this and turn the Label Red when it is not checked.
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard