[Catalyst] HTML::FormFu form elements

onken at houseofdesign.de onken at houseofdesign.de
Thu Feb 12 09:07:58 GMT 2009


On Thu, 12 Feb 2009 09:38:18 +0100, "Jens Schwarz" <blacky6767 at gmx.de>
wrote:
>> 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.)
> 
> What I do in this context:
> 
> The template remains untouched. But in my Controller, I manually remove
the
> desired elements:
> 
> $form->remove_element($form->get_element({ name => 'element_name' }));
> 
> Jens

Did you try

form.get_all_element()? get_element returns top-level elements, only.



More information about the Catalyst mailing list