WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Which control for deselectable, mutually exclusive options?

for

From: Aditya
Date: Jan 18, 2019 4:59AM


You can add one more radio button option which would be some thing like "None".
Or add a button "Clear Selection" that resets the radio group.



Sent from my iPhone

> On Jan 18, 2019, at 5:50 AM, Isabel Holdsworth < <EMAIL REMOVED> > wrote:
>
> Hi there,
>
> We have some forms where users need to choose a single answer from a
> group of possible options. Radio buttons would be perfect for this
> scenario.
>
> But once the user has selected an answer, they need to be able to
> deselect it if they change their mind. Radio buttons aren't
> deselectable, so they're not fit for purpose.
>
> What would be the best element to use for these forms?
>
> We could do something fancy and create a group of options that look
> like buttonms but behave like a <select> list. But speech input
> doesn't tend to cope well with elements that are masked as different
> element types. And hacks like this are offensive to my purist
> mentality :-)
>
> Any suggestions gratefully received.
>
> Kind regards, Isabel
> > > >