Checkbox accessibility labels
-
I’ve installed the Contact Form 7 Accessibility plugin, and read the How to Set up an Accessible Form blog post, but I am not having success with the checkbox item. I use this code for the checkbox fieldset:
<fieldset> <p><label><strong>I believe my idea will:</strong> (select all that apply)</label><br /><br /> [checkbox idea-result id:idea-result use_label_element "Prevent Accidents" "Improve Student Success" "Improve Service" "Improve Morale" "Increase Productivity" "Reduce Costs" "Save Time" "Prevent Waste" "Other (Specify):"] </fieldset>
but when I go to verify it I get:
“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 716, Column 165:
<input type=”checkbox” name=”idea-result[]” value=”Prevent Accidents” />
Error Line 716, Column 349:
<input type=”checkbox” name=”idea-result[]” value=”Improve Student Success” />
Error Line 716, Column 545:
<input type=”checkbox” name=”idea-result[]” value=”Improve Service” />”
Would you be able to tell me what I have missed? Thank you.
- The topic ‘Checkbox accessibility labels’ is closed to new replies.