On Thu, 12 Feb 2009 09:38:18 +0100, "Jens Schwarz" <blacky6...@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. _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/