Re: FormBuilder/QuickForm default date
| From: | Luca Giandoso | Date: | Fri, 02 Mar 2007 10:55:10 +0000 |
| Subject: | Re: FormBuilder/QuickForm default date | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26705@lists.php.net to get a copy of this message | ||
$formBuilder->dateOptionsCallback = 'myDateOptions';
where myDateOptions is a custom function:
function myDateOptions($field, &$fb)
{
return array('addEmptyOption' => true, 'emptyOptionText' => '--');
}
On 3/2/07, Jan Söderback <jsoderba@gmail.com> wrote:
I've got a DB_DataObject_FormBuilder form with a date control on it. Is there an option I can set to make it default to the empty values instead of the current date? I'm using the latest versions of PHP and the relevant PEAR classes. -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php