WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: required field not being announced in Firefox/NVDA

for

From: Birkir R. Gunnarsson
Date: Oct 13, 2017 12:08PM


Greg
Tis is cool, but it only seem to work in Firefox, at least my quick
test did not yield any results in either IE or Chrome.


On 10/13/17, Greg Gamble < <EMAIL REMOVED> > wrote:
> We found a way for FF to announce a custom error message. We added the
> following attributes to the text fields.
>
> HTML5
> oninvalid="setCustomValidity('Username required')"
> oninput="setCustomValidity('')"
>
> This will give an error message that says ''Username required'' when we have
> an input field with required, and no value entered.
>
> Greg Gamble
> p - 360-704-4376
>
>
>