Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Multiple validators for a single field problems

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
schoenung
Smarty Rookie


Joined: 05 Apr 2004
Posts: 28

PostPosted: Wed Feb 22, 2006 3:35 am    Post subject: Multiple validators for a single field problems Reply with quote

When validating multiple criteria on a field SmartyValidate does not stop at the first error. I get error like this.

I get errors like this.

    Firstname is required
    Firstname must only contain A-Z characters
    Lastname is required
    Lastname should contain only A-Z characters
    Address is required
    Email address is required
    Email address should be formatted name@domain.com
    Email address is already registered to another user.
    Year of birth is required.
    Year of birth must be an integer
    Year of birth is not in expected range
    City is required
    City should contain only A-Z characters
    Zip code is required
    Zip code should be formatted 00000
    Emergency contact is required
    Emergency phone number is required
    Emergency phone should be formatted 000-000-0000
    ......

According to the manual the behavior should be:
Quote:

Multiple validators may be used for one field. Once one validator fails, the remaining validators for that field are ignored. A "halt" parameter can also stop validation on remaining fields.


Could someone please tell me how to trace this error?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP