[html-formfu] default_values

Mario Minati mario.minati at googlemail.com
Wed Oct 17 21:12:13 GMT 2007


Maybe we should also move the content of the caveat section into the cookbook.

Greets,
Mario

On Wednesday 17 October 2007 17:27:52 Carl Franks wrote:
> The form object now has a default_values() method which accepts a
> hash-ref of names/values, and uses them to set the fields default
> values.
>
> This should replace the idiom previously suggested on the list.
>
> This should be called /after/ adding the fields to the form (if you
> use a config file, then  populate() automatically takes care of it).
>
> I'm currently in the process of cleaning up the FAQ and Cookbook
> (there doesn't seem to be a clear distinction between the two) - I'll
> remove the idiom from the docs, but it probably won't be committed
> until tomorrow.
>
> Cheers,
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.rawmode.org
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu





More information about the HTML-FormFu mailing list