[html-formfu] model_stash + model_config with ComboBox element

Carl Franks fireartist at gmail.com
Tue Jan 27 14:10:03 GMT 2009


2009/1/27 Ascii King <tech at swattermatter.com>:
> What a wonderfully useful tip. Thank you. I didn't understand why I was told
> to put my Model in the stash as it seemed to make no difference. Now I do.
> This is much easier than the long, coded way. However, how can I specify
> which column I want to use in the table? My lookup table contains a few
> different columns and the Select element is populated using data from the
> wrong column. Is there some way to specify which one I want?

Yes, you can set the column used for both the 'value' and the 'label'
of the options.
It's documented here:
http://search.cpan.org/~cfranks/HTML-FormFu-Model-DBIC-0.03007/lib/HTML/FormFu/Model/DBIC.pm#options_from_model

Carl



More information about the HTML-FormFu mailing list