Checkbox Validation
-
Is there any way to assign labels explicitly to checkboxes in Contact Form 7?
I am running into an issue with WCAG 2.0 warnings with my form.
On my form I have:
<label for=”complete-accounting-package”>Complete Accounting Package:</label>[checkbox complete-accounting-package id:complete-accounting-package use_label_element “Yes”] <br />By adding use_label_elements it removed a warning that said:
Check 119: input element, type of “checkbox”, missing an associated label.
Repair: Add a label element that surrounds the control’s label. Set the for attribute on the label element to the same value as the id attribute of the control. And/or add a title attribute to the input element. And/or create a label element that contains the input element.
Error Line 544, Column 313:<input type=”checkbox” name=”complete-accounting-package[]” value=”Yes” />
I still have these two warnings.
Check 206: input element, type of “checkbox”, has no text in label.
Repair: Add text to the input element’s associated label that describes the purpose or function of the control.
Error Line 544, Column 320:<input type=”checkbox” name=”complete-accounting-package[]” value=”Yes” />
Check 188: Label text is empty.
Repair: Add text to the label element.
Error Line 544, Column 320:<input type=”checkbox” name=”complete-accounting-package[]” value=”Yes” />
Check 188: Label text is empty.
Repair: Add text to the label element.
Error Line 544, Column 320:<input type=”checkbox” name=”complete-accounting-package[]” value=”Yes” />
Your help to solve this would be greatly appreciated!!
- The topic ‘Checkbox Validation’ is closed to new replies.