On 23 July 2012 11:02,  <sc...@simpzoid.com> wrote:

> <elements>
>     type   Repeatable
>     name   row

> I would be grateful if someone could point out the correct syntax for:
> $form->element->repeat(5)

$form->get_all_element({ name => 'row' })->repeat(5);

get_all_element() returns the first matching element, and searches all
descendants, whereas get_element() would just search immediate
children.

Carl

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to