E-mail List Archives
Re: required field not being announced in Firefox/NVDA
From: Beranek, Nicholas
Date: Oct 13, 2017 1:47PM
- Next message: Steve Faulkner: "Re: required field not being announced in Firefox/NVDA"
- Previous message: Greg Gamble: "Re: required field not being announced in Firefox/NVDA"
- Next message in Thread: Steve Faulkner: "Re: required field not being announced in Firefox/NVDA"
- Previous message in Thread: Greg Gamble: "Re: required field not being announced in Firefox/NVDA"
- View all messages in this Thread
Thanks, Greg.
That code is fine. I wonder if it's your HTML5 validation, including the use of the setCustomValidity method. I want you to check if this fork works as you'd expect: http://jsfiddle.net/jna1mduv/
What I found was that the error message generated was rendered as an alert. With alerts, only the message reads out; the queue is cleared out and replaced by the alert. This is likely why you're not hearing the label on invalid.
Nick
On 10/13/17, 2:52 PM, "Greg Gamble" < <EMAIL REMOVED> > wrote:
This is an example of the code Angela is talking about.
<div class="form-group">
<label for="MainContent_txtUserName" id="MainContent_lblUsername" class="col-sm-3 control-label ">Username</label>
<div class="col-sm-4">
<input name="ctl00$MainContent$txtUserName" type="text" id="MainContent_txtUserName"
class="form-control" required="true" autofocus="true" placeholder="Username"
oninvalid="setCustomValidity('Username required')" oninput="setCustomValidity('')" />
</div>
</div>
Greg Gamble
p - 360-704-4376
- Next message: Steve Faulkner: "Re: required field not being announced in Firefox/NVDA"
- Previous message: Greg Gamble: "Re: required field not being announced in Firefox/NVDA"
- Next message in Thread: Steve Faulkner: "Re: required field not being announced in Firefox/NVDA"
- Previous message in Thread: Greg Gamble: "Re: required field not being announced in Firefox/NVDA"
- View all messages in this Thread