Merge Server-Client Errors
Purpose
This component merges Server and Client errors together.
Example
Consider adding an aria-hidden="true"
attribute to <strong class="required">
(i.e. <strong class="required" aria-hidden="true">
) in required field labels. Hardcoding it will prevent screen readers from announcing "required" twice in the noscript and basic HTML versions of the page. The form validation plugin automatically adds the attribute to the JavaScript version. Don't use the attribute in required <legend>
elements.
After submitting your page, the server returned 7 server errors. Now if you try to resubmit your form with some client errors, the component will add these errors to the existing server errors.
To test: Try clearing a field or enter 201 as the Beneficiary's age or uncheck all checkboxes.
Demo Asp.Net Web Form
- Date modified: