WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Forms that delete something

for

From: Chase, DJ
Date: Jan 9, 2024 8:19AM


Habitually using forms for this also allows you to be consistent if you occasionally want to ask for conformation --- all you need to do is just include a required checkbox in the form to confirm.

Cheers,
--
DJ Chase
Digital Accessibility Specialist, NECC
They, Them, Theirs
+1 978 556 3794

From: WebAIM-Forum < <EMAIL REMOVED> > on behalf of Jeremy Echols < <EMAIL REMOVED> >
Sent: Monday, January 8, 2024 17:47
To: WebAIM Discussion List
Subject: Re: [WebAIM] Forms that delete something

[You don't often get email from <EMAIL REMOVED> . Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

ATTENTION: This email is from an external source. Do Not click on any links or open any attachments unless you recognize the sender and know the content is safe. To report a suspicious email, please use the new phishing alert button in outlook

Agreed - the HTML "form" may feel like it's incorrect because the name "form" sort of suggests to our collective conscious something with lots of blank spaces that needs information. But it is indeed the right element to use for deletion.

Think of it as a pre-filled paper form where all you have to do is submit it to the right person / organization in order to, say, start a free trial of Sirius XM or something. All the necessary data was pre-printed onto that form because they want it to be easy, so all you have to do is submit it. Same concept with the button-only form: it's been "pre-filled" with the hidden values (such as the request to delete a record). And the action itself, which holds the destination URL, is also just pre-filled data telling the form what it's for and likely the database ID of the record to delete.