Hi all,

$address = new Zend_Form_Element_Text('address');
$address->setLabel('Address:')
          ->setRequired(true)
          ->setAttrib('maxlength', '50')
          ->setAttrib('size', '50')
          ->setAutoInsertNotEmptyValidator(false)
          ->addValidator('Alnum', false, array('allowWhiteSpace' => true));

Is it possible to allow other chars, for example ","?
-- 
View this message in context: 
http://www.nabble.com/Zend_Form-%28Alnum-Validator%29%3A-How-to-allow-not-only-white-space--tp16416914p16416914.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to