Re: timeOptions and dateOptions methods for FormBuilder :)

From: Date: Wed, 11 May 2005 00:33:45 +0000
Subject: Re: timeOptions and dateOptions methods for FormBuilder :)
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19153@lists.php.net to get a copy of this message
On 11/05/2005, at 3:17 AM, Justin Patrin wrote:
This isn't possible. However, if you had looked at my Frontend code... You can quite easily stop all rules using this: $form->_rules = array(); $form->_formRules = array(); $form->_required = array(); Granted, this is technically editing private vars, but oh well. You can also stop the required rules by removing the NOT NULL bit from the types.
I just discovered another setting, this turns off all required fields, but u can also select some not required in an arrya array('excludeFromAutoRules'=>'__ALL__') I also tweaked formbuilder with an option fieldsRequired = array('date','time');

« previous php.pear.general (#19153) next »