R Balaji wrote:
I think it would be better if we prompt all the errors at once to the user. The user should not wait till entering the valid fields and then check for the validity of the entered values.

The "Required" condition should take the precedence over all other condition for that *particular Field*. I too agree this , as there is not point in checking the length, when the user fails to enter the value at all. But my concern is, why should we wait till entering all *other* required fields, for checking the length of a Field.

Can i do Complex validations, using the predefined rules like "required", "range" .. etc .. ? Should i write my own rules by duplicating the predefined ones ?

That is your preference, but I feel the way it is currently done is best. For the javascript validation on the client-side, this is definitely better because the errors appear in a small pop-up which you have to click away before you can correct the errors, i.e. the user has to memorise the errors before correcting them.


On the server-side I agree it is probably preferable to show all errors at once.

Adam


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to