-- Waigani <[EMAIL PROTECTED]> wrote (on Tuesday, 02 September 2008, 12:00 AM -0700): > I'm validating a form. Most of the validation needs to be of the following > format: IF there is content in a feild THEN that content needs to be valid > xyz. > > It seems that if I put any kind of validator on a feild, the form fails if > their is no content in that field. How do I get around this? > > Thank you for your time (and who ever is going to ZendCon see you soon!),
I'd like to see your code to see if it represents a reproduce case. By default, elements are *not* required, meaning that if no value is submitted, no validators should be run. This has worked perfectly for me in every form I've written with Zend_Form -- perhaps others can chime in here, though, if they have experienced what you describe? -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
