WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Whether or not to disable form submit button

for

From: Mark Magennis
Date: Dec 14, 2023 9:03AM


A disabled Submit button can still be focusable and exposed to AT. Coding-wise, if you add the HTML disabled attribute it will not be focusable in most, if not all, browsers. But if you add aria-disabled="true" it will remain focusable. This makes it discoverable and gives you the opportunity to provide some information in the name or description about why it is currently disabled.
From: WebAIM-Forum < <EMAIL REMOVED> > on behalf of jp Jamous < <EMAIL REMOVED> >
Sent: Thursday 14 December 2023 14:00
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: [EXTERNAL] Re: [WebAIM] Whether or not to disable form submit button

What Chat GPT provided is not necessarily WCAG compliant. In fact, it is a UX Design guideline. All of the UX designers I have worked with since 2018 have been implementing this.

While it might work for sighted users, I find it to work against screen reader and keyboard only users. If the form does not display any errors once a form element loses focus and no status alerts are spoken, then the user would tab to the end of the form and there is no Submit button receiving focus. That Throws the user off until the user figures out that something is wrong with the form.

I am not claiming that I am against it. As long as
1. there is a visual alert
And
2. status alert

Once the invalid form element loses focus , having the Submit button disabled is okay. Unfortunately, UX Design does not take all users in consideration. That is why my approach with UX Designers is to look at an inclusive approach rather than what is defined by UX Design documentation.

Just my 2 cents on this.
-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of <EMAIL REMOVED>
Sent: Thursday, December 14, 2023 7:19 AM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Whether or not to disable form submit button

I was actually unsure about this.
So I asked my buddy ChatGPT and this is what he said

While there may not be a universal standard, it's considered a good practice to disable the submit button until all required fields are correctly filled. This helps prevent incomplete or erroneous form submissions and enhances user experience.

Dean Vasile


617-799-1162

> On Dec 14, 2023, at 7:59 AM, Hill, Barry (Accessibility Tester) via WebAIM-Forum < <EMAIL REMOVED> > wrote:
>
> Hi all
>
> I'm looking for a rule or regulation on this, but, if there isn't one, best practice will help. Should a submit button on a form be disabled until after all fields have been correctly completed?
>
> Thanks in anticipation.