Matrix Version: 188.8.131.52
To alert the screen reader users that there were errors in a form I use:
<div role="alert" class="formerrors" aria-labelledby="error-message" tabindex="-1"> <h2 id="error-message" class="errornote"> There were %form_errors^xpathe:count(//li)% errors in this form. Please correct the listed fields and submit again: </h2>
Then there is a list of errors with a link to an appropriate field. It suits well both sighted and screen reader users.
The issue is when I would like to use Accessible Format – Yes, from the Formatting section on the Form Contents screen.
%form_errors^xpathe:count(//li)% doesn’t work in Accessible Format. Is it a bug or should I use something else?