[Catalyst] Re: filling fields through FromBuilder dynamically

rahed raherh at gmail.com
Fri Apr 13 14:20:04 GMT 2007


On 4/13/07, rahed <raherh at gmail.com> wrote:
> Hello,
>
> I render forms in the TT template with [% FormBuilder.render %]. The
> forms are defined in file.fb.
> I would like to dynamically change one of the predefined values

I found I can trim the form in the controller like this

__PACKAGE__->config('Controller::FormBuilder'=>{
new=>{values   => {my_field => 'MY_DATE'}}
};

which is for now sufficient.

-- 
Radek



More information about the Catalyst mailing list