RE: Required Fields

There is already a binding attribute to specify a required field--no need for a new child element. It is up to the xforms implementation to decide how to enforce that in user interface. One approach is as you describe; although, like the other responder, most users will not like this rigid approach!

An interesting approach is that taken by ASP.NET webforms' validation controls (and probably other dynamic HTML solutions). If the user enters a value and then clears the field, then upon leaving the field the alert appears immediately as dynamic HTML near the field. However, the form does not prevent the user from tabbing out and giving focus to the next field.

> From: nocturno@zipmail.com.br 
> 
> 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 09:08:31 UTC