|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
B00zy Smarty Rookie
Joined: 19 Jul 2004 Posts: 12
|
Posted: Mon Jul 19, 2004 4:46 am Post subject: SmartyValidate Feature Request (unless it already exists) |
|
|
Is it possible to have more than one validation tag for a field?
For example
* I want to check if the field "FullName" is empty with criteria="notEmpty", if so message="Name cannot be empty"
* Then check if it's below or above the specified length with="isLength", if so message="Name must be between [min] and [max] length"
* Then check if it matches a given regex with criteria="isRegExp", if so message="Name must be composed of only letters or numbers"
If this doesn't already exist, that is my feature request |
|
Back to top |
|
B00zy Smarty Rookie
Joined: 19 Jul 2004 Posts: 12
|
|
Back to top |
|
|
|
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
|