Please suggest. I need to verify some WCAG guidelines. I googled a lot but didn't get any appropriate solution.
The WCAG guidelines say (whan I run my form in sortsite)
This form control has no LABEL and no programmatically determined name. WCAG 2.0 A F68 Section 508 (2017) A F68 1 pages
A programmatically determined name allows screen readers to tell the user what the control does. To add a name do one of the following:
•Use a LABEL element with the FOR attribute set to the ID of the form control
•Wrap a LABEL element around the form control
•Add a TITLE attribute
•Add an ARIA-LABELLEDBY attribute (not supported in all screen readers)
•Add an ARIA-LABEL attribute (not supported in all screen readers)
I tried by all three ways 1. put title of form in code file
2. put a title in form tag3. put a title in page directive, but the issue remain same.
Could you please suggest What I need to do. (Any resource/link/any working content )
Note: I am using a master page.
I need to correct 2 more issue, but couldn't find on any website
(1. Identify row and column headers in data tables using TH elements, and mark layout tables with role='presentation'.
2. This page uses nested tables, which do not make sense when read in a screen reader.)
its not the <form> tag that needs the label, but every <input>, <textarea> and <select>.
if a table is just used for layout you use the role, if the table is used to present data in a grid, you need to use <th> to label the columns. every table should have 1 or the other.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Thanks for your reply, although I am using vb.net, I did like
txt_search_data.Attributes.Add("title", "Search")
But still shows
<div>This form control has a blank label or title.</div> <div></div> <div>Add descriptive text to the form control's label. </div> <div></div> <div>While finding issue for WCAG. <div></div> </div> <div>My text box on search page is as </div> <div>
Use a LABEL element with the FOR attribute set to the ID of the form control
Sir, i am not good at WCAG 2.0, but if the document is right, the code should look like this, please have a try.
<label for="form1">here is the form1</label>
<form id="form1" runat="server">
<div>
</div>
</form>
Good Luck :)
Bests,
Jolie
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Participant
1267 Points
2460 Posts
This form control has no LABEL and no programmatically determined name
Jan 23, 2018 10:00 AM|demoninside9|LINK
Hi All,
Please suggest. I need to verify some WCAG guidelines. I googled a lot but didn't get any appropriate solution.
The WCAG guidelines say (whan I run my form in sortsite)
This form control has no LABEL and no programmatically determined name. WCAG 2.0 A F68 Section 508 (2017) A F68 1 pages
A programmatically determined name allows screen readers to tell the user what the control does. To add a name do one of the following:
•Use a LABEL element with the FOR attribute set to the ID of the form control
•Wrap a LABEL element around the form control
•Add a TITLE attribute
•Add an ARIA-LABELLEDBY attribute (not supported in all screen readers)
•Add an ARIA-LABEL attribute (not supported in all screen readers)
I tried by all three ways 1. put title of form in code file 2. put a title in form tag 3. put a title in page directive, but the issue remain same.
Could you please suggest What I need to do. (Any resource/link/any working content )
Note: I am using a master page.
I need to correct 2 more issue, but couldn't find on any website
(1. Identify row and column headers in data tables using TH elements, and mark layout tables with role='presentation'.
2. This page uses nested tables, which do not make sense when read in a screen reader.)
Thanks
All-Star
50824 Points
12081 Posts
Re: This form control has no LABEL and no programmatically determined name
Jan 23, 2018 03:39 PM|bruce (sqlwork.com)|LINK
its not the <form> tag that needs the label, but every <input>, <textarea> and <select>.
if a table is just used for layout you use the role, if the table is used to present data in a grid, you need to use <th> to label the columns. every table should have 1 or the other.
you are not allowed to nest data tables.
Participant
1267 Points
2460 Posts
Re: This form control has no LABEL and no programmatically determined name
Jan 24, 2018 04:10 AM|demoninside9|LINK
But I am using <asp:Button>, <asp:Text Box... /> and <asp:Dropdownlist... />
After render it shows html controls, but in my aspx how can I do that?
Please suggest.
Contributor
5270 Points
2307 Posts
Re: This form control has no LABEL and no programmatically determined name
Jan 24, 2018 09:55 AM|AngelinaJolie|LINK
Hi demoninside,
May I know if that what you want is to add a new attribute to your form control.
If yes. please refer to this way;
Guide:
https://msdn.microsoft.com/en-us/library/7a9d6h4f.aspx
Hope it is helpful to you :)
With regards, Angelina Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Participant
1267 Points
2460 Posts
Re: This form control has no LABEL and no programmatically determined name
Jan 24, 2018 10:17 AM|demoninside9|LINK
Thanks for your reply, although I am using vb.net, I did like
But still shows
<div>This form control has a blank label or title.</div> <div></div> <div>Add descriptive text to the form control's label. </div> <div></div> <div>While finding issue for WCAG. <div></div> </div> <div>My text box on search page is as </div> <div>
Thanks</div>Contributor
5270 Points
2307 Posts
Re: This form control has no LABEL and no programmatically determined name
Jan 25, 2018 05:54 AM|AngelinaJolie|LINK
Hi demoninside,
Sir, i am not good at WCAG 2.0, but if the document is right, the code should look like this, please have a try.
Good Luck :)
Bests,
Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.