W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] WF2: Non-validating submit buttons

From: Martin Atkins <mart@degeneration.co.uk>
Date: Wed, 24 Jan 2007 18:03:58 +0000
Message-ID: <45B79F8E.7000807@degeneration.co.uk>

It would be useful to be able to mark certain submit buttons as 

Use case: lots of the forms generated by one of my web-apps have a 
"Cancel" button which simply causes the server to redirect the user back 
to wherever they came from. When I use the WF2 extensions to mark 
required fields, formats, etc the Cancel button won't submit until the 
form is completed correctly. This doesn't make much sense from a UI 

I propose a flag on the submit button elements (both INPUT and BUTTON 
TYPE="SUBMIT") which causes the browser not to run the usual validation 
procedure before submitting when that button is pressed. For example:

     <input type="submit" validate="no" />

I'm not fussed about the exact name/usage of the attribute, but it seems 
like a common enough case to warrant a declarative solution rather than 
a script one.
Received on Wednesday, 24 January 2007 10:03:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:51 UTC