[html-formfu] get_all_element - what's an element?
Ascii King
tech at swattermatter.com
Wed Apr 1 15:40:48 BST 2009
OK. I was creating the tag improperly. Like this:
- type: Block
tag: span
content_xml: <a href="#" name="expenditure_count">Add More Records</a>
Once I saw your explanation I broke it into it's own tag and it works
now. Thank you.
(I needed the span tag)
- type: Block
tag: span
elements:
- type: Block
tag: a
name: expenditure_count
content: Add Another Expenditure
attributes:
class: dupicateLink
href: '#'
Carl Franks wrote:
> Anything that can be added with $form->element()
> is returned by $form->get_elements()
>
> If you add it with, for example:
> $form->element({ type => 'Block' });
>
> then you retrieve it with:
> $form->get_element({ type => 'Block' });
More information about the HTML-FormFu
mailing list