[html-formfu] populate with a variable

2009-02-04 Thread abhishek jain
friends,how can i populate a FormFu form with a yml config file with a variable defined on stash so i want something like c.stash.varhash.key printed in the form input text box. -- Thanks and kind Regards, Abhishek jain ___ HTML-FormFu mailing list HTM

Re: [html-formfu] option attributes

2009-02-04 Thread Carl Franks
2009/2/4 Dermot : > 2009/2/4 Carl Franks : >> 2009/2/4 Dermot : >>> Hi, >>> >>> Is it possible to set the 'selected' attribute on a option element? >>> I have tried selected => 1 and selected => 'selected' but nether give >>> me the effect. >> >> Like any other field, you just need to call: >>$

Re: [html-formfu] option attributes

2009-02-04 Thread Dermot
2009/2/4 Carl Franks : > 2009/2/4 Dermot : >> Hi, >> >> Is it possible to set the 'selected' attribute on a option element? >> I have tried selected => 1 and selected => 'selected' but nether give >> me the effect. > > Like any other field, you just need to call: >$field->default( $value ) > >

Re: [html-formfu] option attributes

2009-02-04 Thread Carl Franks
2009/2/4 Dermot : > Hi, > > Is it possible to set the 'selected' attribute on a option element? > I have tried selected => 1 and selected => 'selected' but nether give > me the effect. Like any other field, you just need to call: $field->default( $value ) where $value == the selected option's

[html-formfu] option attributes

2009-02-04 Thread Dermot
Hi, Is it possible to set the 'selected' attribute on a option element? I have tried selected => 1 and selected => 'selected' but nether give me the effect. my @options; foreach (@Obj) { push(@options, {value => $_->id, label => $_->name, attributes => {selected => 'selected'} } ); } my

Re: [html-formfu] customize display of error messages

2009-02-04 Thread Carl Franks
2009/2/4 abhishek jain : > hello, > I wish to customize the error messages displayed after applying a > constraint, > I mean the template / display and not the text of error message. Have you tried... http://search.cpan.org/~cfranks/HTML-FormFu-0.03007/lib/HTML/FormFu/Manual/Cookbook.pod#ADVANCED_

[html-formfu] customize display of error messages

2009-02-04 Thread abhishek jain
hello, I wish to customize the error messages displayed after applying a constraint,I mean the template / display and not the text of error message. Pl. help -- Thanks and kind Regards, Abhishek jain ___ HTML-FormFu mailing list HTML-FormFu@lists.scsys.c

Re: [html-formfu] HTML::FormFu::Model::DBIC

2009-02-04 Thread Dermot
2009/2/3 Octavian Rasnita : > Update the module because the documentation had errors. > > $form->create is not correct. It should be $form->model->create. > > I don't remember if the change was submitted to cpan or if I got the new > code from the SVN repository, but try from the CPAN first. > > Oc