WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: required field not being announced in Firefox/NVDA

for

From: Greg Gamble
Date: Oct 13, 2017 10:14AM


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