[html-formfu] Date element stopped working

Carl Franks fireartist at gmail.com
Tue Mar 25 09:47:09 GMT 2008


On 24/03/2008, vti <viacheslav.t at gmail.com> wrote:
> vti(viacheslav.t at gmail.com)@Mon, Mar 24, 2008 at 07:19:30PM +0200:
>
> > After updating to the current html-formfu Date element stopped working on
>  > default_values(), though it works on update().
>
>
> Seems like:
>
>  $form->get_element( 'starttime' )->value(
>     strftime "%Y-%m-%d %H:%M", localtime
>  );
>
>  doesn't work either.. :-(

Use default() not value().
Although value() is an alias for default() for most fields - it's not
the case for all of them - so you're less likely to get confused if
you just use default().

Carl



More information about the HTML-FormFu mailing list