[html-formfu] removing element from the form
rahed
raherh at gmail.com
Wed Jul 28 09:16:54 GMT 2010
Benjamin Martin <benjamin at opusvl.com> writes:
> I think is not working because to remove an element you need to call
> remove_element' against the element's 'parent' ... which may not be
> "form"
>
> Try this:
>
> [% txt = form.get_all_element('field1') %]
> [% txt_parent = txt.parent %]
> [% txt_parent.remove_element( txt ) %]
It emits the error:
Can't locate object method "" via package "HTML::FormFu::Element::Text"
--
Radek
More information about the HTML-FormFu
mailing list