[html-formfu] removing element from the form

rahed raherh at gmail.com
Tue Jul 27 14:58:12 GMT 2010


Hi,

I want to remove a text element from my form.
In the template I do:

[% txt = form.get_field('field1) %]

[% txt.label %] # shows its label, ok

[% form.remove_element(txt) %] # shows undef error - element not found

What's the right syntax?
Thanks.

-- 
Radek



More information about the HTML-FormFu mailing list