[html-formfu] Re: HTML-FormFu Digest, Vol 11, Issue 23

Carl Franks fireartist at gmail.com
Fri Mar 28 13:27:37 GMT 2008


On 28/03/2008, Joe Prosser <jvprosser at gmail.com> wrote:
> Hi Carl,
> I found it in
> http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Model-HTML-FormFu-0.99999.readme
>
> Halfway down the page in the "DYNAMIC VALUES" section.

I've never used that - you'll have to ask Daisuke for advice.

It does say in the page you linked to, that your 'select_from_db'
subroutine should be in the MyApp::Model::HTML::FormFu package, and
it's called as a method on the model object
    $model->select_from_db

To use query values to build your options list - with C-M-HTML-FormFu
- I've no idea how it works!

I know it could be done though with a combination of
HTML::FormFu::Plugin::StashValid and HTML::FormFu::Model::DBIC's
'condition_from_stash'

Carl



More information about the HTML-FormFu mailing list