W3C home > Mailing lists > Public > www-html@w3.org > September 2001

Default Submit Button

From: Clark C . Evans <cce@clarkevans.com>
Date: Sat, 8 Sep 2001 12:02:21 -0400
To: www-html@w3.org
Message-ID: <20010908120221.A3566@doublegemini.com>
How do I specify that a particular button is
the default submit button?  Why?  I have
multiple fields, with list boxes and an 
"Add" button next to each list box.  Then
I have a "Submit" button at the bottom.

Problem is... when someone presses ENTER
it grabs the nearest Add button.  Not good.
I noticed that this was brought up in 1995,
this has been solved somehow, no?

The most obvious, <INPUT type="SUBMIT" DEFAULT 
doesn't work and I don't see DEFAULT anywhere
in any of the recent specifications.




From: "Paul W. Barber" <barbe016@maroon.tc.umn.edu>
To: www-html@w3.org
Date: Wed, 1 Nov 1995 20:36:55 -5
Subject: Proposal:  Default Button on Forms
Message-Id: <30982eaf679b002@maroon.tc.umn.edu>

I would like to suggest that there be a way of indicating a default 
Button on a Fill-out Form.  The way I understand the current spec is 
as follows (from 
Things to Note)
A "submit" element is necessary in all forms except those
     containing only a single INPUT element of type
     TEXT (in which case Return in the text entry
     area submits the form) or at least one INPUT element
     of type IMAGE (in which case a click in the image
     submits the form).

When a form has multiple Text areas, it would be helpful to be able 
to indicate a default Button.  This could possible by implemented as 

<INPUT TYPE="submit" DEFAULT="True" VALUE="Submit">

This would allow the user of the Fill-out Form to simply press the 
keyboard Enter to submit the form when it has multiple Text entries.  
It would also be useful with multiple Submit Buttons where the HTML 
author could decide which is the most common response and indicate it 
with the Default tag.
Paul Barber
<A HREF="http://www.umn.edu/nlhome/m028/barbe016/">Paul's Home
<A HREF="http://freenet.msp.mn.us/ip/nhoods/mpls/dmra/">Downtown
Minneapolis Residents Association (DMRA)</A>
Received on Saturday, 8 September 2001 11:53:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:58 UTC