Title: Checkbox Validation
Last modified: January 3, 2017

---

# Checkbox Validation

 *  [007bmorris](https://wordpress.org/support/users/007bmorris/)
 * (@007bmorris)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/checkbox-validation-3/)
 * 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.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 0 replies
 * 1 participant
 * Last reply from: [007bmorris](https://wordpress.org/support/users/007bmorris/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/checkbox-validation-3/)
 * Status: not resolved