On 15/08/07, Moritz Onken <[EMAIL PROTECTED]> wrote:
> There is a little bug. If you do it as I wrote the value of the
> unclicked button will be "" after submission. If you have an error on
> that form the new page will have an empty submit button.
>
>
>         $form->add_valid( $_->name, $_->value )
>           for ( @{ $form->get_elements( { type => 'submit' } ) }

I've fixed this by making submit buttons have retain_default(1).
Now, regardless of which submit button is clicked, they will all still
have their default value when you redisplay the form.

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