[Catalyst] HTML::FormFu form elements

Jens Schwarz blacky6767 at gmx.de
Thu Feb 12 08:38:18 GMT 2009


> 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
-- 
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a



More information about the Catalyst mailing list