ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-general
pear-general
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved