[html-formfu] removing element from the form

rahed raherh at gmail.com
Wed Jul 28 09:59:45 GMT 2010


Carl Franks <fireartist at gmail.com> writes:

> I'm not sure what's causing that error message, but I'm not sure that
> code's exactly what you want.
> remove_element() returns the element that's removed - which in this
> case will be stringified and inserted into the template.
>
> If you don't want the field printed, then you'll need the CALL directive:
>
> [% txt = form.get_all_element('field1') %]
> [% CALL txt.parent.remove_element( txt ) %]

Great. I forgot this directive.

Thank you.

-- 
Radek



More information about the HTML-FormFu mailing list