Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to make a accessible form without a submit button?

I am trying to create a site with high rankings in accessibility and one of the things i have come across is. My live search (that makes a ajax request and shows suggestions from what you type in the search bar on "keyup").

The list of suggestions i full of links that will take you to the page you are looking for meaning there is no submit page containing your results you just click the links therefore a submit button would be in my opinion redundant and useless.

My question therefore: Is it possible to make a form ex a live search without a submit button without the site being ranked lower than if it had a search button?

like image 465
Benn Wigh Avatar asked Mar 15 '17 13:03

Benn Wigh


2 Answers

Is it possible to make a form ex a live search without a submit button without the site being ranked lower than if it had a search button?

You have to read WCAG Success Criterion 3.2.2 On Input

The first technique proposed is G80: Providing a submit button to initiate a change of context

But there's another technique which would not require a submit button: G13: Describing what will happen before a change to a form control that causes a change of context to occur is made

TLDR: yes, but.

like image 136
Adam Avatar answered Nov 15 '22 07:11

Adam


Its usually considered good practice to have a 'fallback' scenario. Say, for instance, the user is not using JS (god forbid) or if the user is using a screen reader of some sort - the search box should direct the user to a new page with listed results.

A helpful guide to building accessible sites can be found at (https://www.w3.org)[https://www.w3.org/TR/WCAG20-TECHS/]

like image 35
Jackson Avatar answered Nov 15 '22 07:11

Jackson