[Catalyst] HTML::FormFu form elements

Carl Franks fireartist at gmail.com
Thu Feb 12 11:07:44 GMT 2009


2009/2/12 Greg Coates <gcoates at csuchico.edu>:
> I've run into a scenario where I need to be able to build an HTML::FormFu
> form and then only display portions of it in my template. (So, the typical
> [% form %] in the template will be replaced by something else, at least in
> my ideal world.)
>
> I tried doing this in the template:
> [% form.get_element('name' => 'element_name') %]
>
> I didn't get an error, but it didn't display.
>
> Does anyone know if what I'm trying to do is possible, and if so, how to do
> it?

[% form.get_field('name') %]

Does exactly what you'd expect.
None of the get_* methods die if there's no elements found.

Please move any further discussion onto the FormFu mailing list - this
has nothing to do with Catalyst
- Cheers,

Carl



More information about the Catalyst mailing list