W3C home > Mailing lists > Public > www-forms@w3.org > April 2002

RE: Required Fields

From: Plechsmíd Martin <Martin.Plechsmid@merlin.cz>
Date: Tue, 9 Apr 2002 08:25:01 +0200
Message-ID: <E50028F23FC6D3118B7D00609761083F015E719D@merkur.merlin.cz>
To: www-forms@w3.org
There are two things concerning your letter:

1. I don't thing this would be a good idea not to allow the users to fill in
the form fields in the order they choose, and to force one particular order.
And to prevent the users to preview what information they are required to
fill in.
E.g., a user spends half an hour by filling in the form, and at the end he
finds that he is requred to fill in some sensitive information which he
doesn't want to.
A better (and - in my opinion - the only correct) way is to leave the
verification that the form is filled in completely till the end, right
before submitting the data.

2. What is to be "require"d are the data that are being send to the server,
not that some form fields are to be filled in. The form fields can be viewed
purely as a mean how to fill in the data. That's why the form fields don't
have the "required" attribute.

However, I thing that a form field could have a "readOnly" attribute, which
would denote that this particular input field is to be read-only, not that
the tied instance data cannot be changed.

	Martin.


> -----Pùvodní zpráva-----
> Od: nocturno@zipmail.com.br [mailto:nocturno@zipmail.com.br]
> Odesláno: 9. dubna 2002 5:15
> Komu: www-forms@w3.org
> Pøedmìt: Required Fields
> 
> 
> Since lots of peoples use TAB key to surf around forms in a page
> I would like to sugest a way to when you hit TAB key and pass 
> from a required
> field it stop and say you can't continue until you enter the 
> information,
> example, take a look at line 16:
> 
> 1 <selectOne ref="as">
> 2 <caption>Select Payment Method</caption>
> 3 <choices>
> 4 <item>
> 5 <caption>Cash</caption>
> 6 <value>cash</value>
> 7 </item>
> 8 <item>
> 9 <caption>Credit</caption>
> 10 <value>credit</value>
> 11 </item>
> 12 </choices>
> 13 </selectOne>
> 14 <input ref="cc">
> 15 <caption>Credit Card Number</caption>
> 16 <TYPE>REQUIRED<TYPE>
> 17 </input>
> 18 <input ref="exp">
> 19 <caption>Expiration Date</caption>
> 20 </input>
> 21 <submit submitInfo="submit">
> 22 <caption>Submit</caption>
> 23 </submit>
> 
> So when you start hit TAB key and you hit Card Number field 
> and hit tab
> again it inform you that field is required and you
> can't go ahead without enter the information.
> 
> Thank you
> 
> Jean
> 
> 
> 
> 
> 
> ------------------------------------------
> Use o melhor sistema de busca da Internet
> Radar UOL - http://www.radaruol.com.br
> 
> 
> 
Received on Tuesday, 9 April 2002 02:19:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:51 GMT