Re: FormBuilder selectAddEmpty for dates?

From: Date: Fri, 29 Oct 2004 15:27:48 +0000
Subject: Re: FormBuilder selectAddEmpty for dates?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15226@lists.php.net to get a copy of this message
On Wed, 27 Oct 2004 17:41:50 -0700, Ken Restivo <ken@restivo.org> wrote: > I vaguely remember someone finding a way to get FormBuilder date fields to have a > "--" as a default. I need this: almost all of the dates in my application are optional and > putting today's date in by default is The Wrong Thing in this case. > > Something like $fb_selectAddEmpty, IIRC. > > I don't remember if it was a patch or a subclass or a workaround. In any case, I > couldn't find it with Google. > Sorry the response was so long in coming. I've added support for selectAddEmpty for date fields in CVS. Please try it and see if it suits you. You could also get this to work by creating a dateOptions($field) function in the DO which returns an array of options to use for the creation of the date field. -- paperCrane --Justin Patrin--

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