Re: [PEAR] timeOptions and dateOptions methods for FormBuilder :)
by Dan Rossi other posts by this author
May 10 2005 6:35PM messages near this date
Re: [PEAR] timeOptions and dateOptions methods for FormBuilder :)
|
Re: [PEAR] timeOptions and dateOptions methods for FormBuilder :)
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');
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Justin Patrin
Dan Rossi
Justin Patrin
Dan Rossi
|