WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form Submit or Button versus link (href) with action

for

From: Birkir Rúnar Gunnarsson
Date: Nov 5, 2010 4:24PM


As a rule, AT users strongly prefer buttons over links for forms and
other "activities" online, at lesat in my experience.
Most screen readers offer the shortcut "b" to get to the next button
on a page, from anywhere, and I always use this to quickly save and
submit the form.
I understand there may be developmental reasons for implementing a
submit as a link, but make sure that its text is crystal clear,
because when such actions are denoted by links I alwyas find myself
looking at the entire form to figure out what to do and where the link
is (I always subconsciously expect a button).
So make the link text something like "To ave this form, click this
link" instead of just "save", that should be an easy change.
Also, if possible, associate the enter key with the default
action/save action on the form is possible. If users do not find the
button to submit on a form the next trick they try is just to fill in
all the info and hit enter from within an edit fild, hoping it will
trigger the default action of the form.
Thanks
-B

On 11/5/10, Susan Grossman < <EMAIL REMOVED> > wrote:
> This may be a bit of a "no-brainer", but I wanted to make sure. When using
> Ajax I do cartwheels trying to break the code before calling it accessible,
> and send it back to development a lot!
>
> FYI - JavaScript is required to use this application, for other product
> related reasons (this is a service backing up a product).
>
> Were working on an application that we're trying to meet WCAG 2.0. One
> little issue is the need for a submit button on a form. We're using a table
> with accessible Ajax that on a link (tab/enter or click), changes a text
> field to an input.
>
> On this change the focus is moved to the input, which is labeled and
> announces itself correctly, both the label and the current content are read
> out.
>
> After changing this text (it's a rename) the next item tabbed to is a "save"
> link that (tab/enter or click) saves the changed text without refreshing the
> page. There is a message that it has been saved and focus is moved to the
> link that now says "rename" instead of "Save" (the readers speak this) and
> you can continue tabbing to the next table row from there. Focus is not
> locked, and everything is tab-able.
>
> I've tested in JAWS and NVDA (I know the basic keys/shortcuts, though I'm
> not a "real user") and tested with just keyboard. I believe this meets the
> needs, but of course the validators tell me I still need a submit. I'm
> aware that a validator isn't the "end all" but a guide, but wanted to make
> sure I didn't miss something before calling this accessible.
>
> Any comments would be helpful or pointers to how others handle the balance
> between Ajax and accessibility
>
> Thanks -
>
> --
> *Susan R. Grossman*
> <EMAIL REMOVED>
>