[html-formfu] Programmatically changing a HTML::FormFu::Element::Select option list

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Oct 31 09:52:55 GMT 2007


On 10/31/07, Scott Wall-gmail <tswall at gmail.com> wrote:
> I apologize if the answer to the question is obvious as I am just
> acquainting myself with the Catalyst framework and Perl in general. I am a
> java and ruby developer by background. How does one programmatically access
> the list of options in a HTML::FormFu::Element::Select option list? As a
> form is loaded via $form->load_config_file( $my_yml_file ) I'd like to set a
> given option as selected based on data pulled from the database, but the
> option list appears to be a nested arrayref that I can't seem to manipulate.
>
If you use DBIx::Class you might have a look at HTML::FormFu::DBIC in
the svn repository - it does pull the option from the DB and then
helps with saving them.

Cheers,
Zbyszek
http://perlalchemy.blogspot.com



More information about the HTML-FormFu mailing list