Hello,

I think I spotted abit of an error in the FormFu::CookBook.

Under "MODIFYING A FORM"

It sites the following example:

    my $fieldset = $form->get_element({ type => 'Fieldset' });
    $fieldset->insert_before(
        $form->element(\%specs),
        $form->get_field($name)
    );

But *I think* it should be:

    my $fieldset = $form->get_element({ type => 'Fieldset' });
    $fieldset->insert_before(
        $fieldset->element(\%specs),
        $fieldset->get_field($name)
    );

Just letting you know... please ignore me if I am wrong (but it seemed to worked for me)

cheers,
-Ben

_______________________________________________
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