WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: {Spam?} HTML Forms with required inputs and a save draft feature

for

From: Patrick H. Lauke
Date: Mar 17, 2025 7:21AM


Note that it's possible to suppress validation for a form, rather than
having to add/remove the required attributes on required fields.

For instance, if you have two submit buttons - one to Save, one to
Submit - you can add formNoValidate to the Save one
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate

P
--
Patrick H. Lauke

* https://www.splintered.co.uk/
* https://github.com/patrickhlauke
* https://flickr.com/photos/redux/
* https://mastodon.social/@patrick_h_lauke