2009/2/12 Greg Coates <[email protected]>:
> 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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to