E-mail List Archives
Re: Three inputs, one required but doesn't matter which one, how to label correctly?
From: Jukka K. Korpela
Date: Feb 21, 2014 12:38AM
- Next message: Ravindra Kumar Jain: "Assistive Technologies / Screen Readers & Google Analytics"
- Previous message: Kathy Wahlbin: "Looking for Participants for User Study"
- Next message in Thread: Lucy Greco: "Re: Three inputs, one required but doesn't matter which one, how to label correctly?"
- Previous message in Thread: Nancy Johnson: "Three inputs, one required but doesn't matter which one, how to label correctly?"
- View all messages in this Thread
2014-02-20 14:50, Nancy Johnson wrote:
> How do you label fields where there are 3 inputs and one required but
> doesn't matter which one?
>
> I have been using wai-aria for required fields up until now..
Assuming you mean text input fields, i.e. input type=text, it seems that
you cannot specify in ARIA that at least one of them needs to be
nonempty. You cannot do that with HTML attributes either. You can just
declare a field required. And you should not do that here of course.
So you can just say, in text, before the fields, that at least one them
needs to be filled out. You can additionally have JavaScript code that
checks that this condition is met when the form is to be submitted.
Yucca
- Next message: Ravindra Kumar Jain: "Assistive Technologies / Screen Readers & Google Analytics"
- Previous message: Kathy Wahlbin: "Looking for Participants for User Study"
- Next message in Thread: Lucy Greco: "Re: Three inputs, one required but doesn't matter which one, how to label correctly?"
- Previous message in Thread: Nancy Johnson: "Three inputs, one required but doesn't matter which one, how to label correctly?"
- View all messages in this Thread