[html-formfu] checkbox strangeness
Ronald J Kimball
rkimball+formfu at pangeamedia.com
Mon Sep 15 15:31:33 BST 2008
Geoffrey D. Bennett wrote:
> On Mon, Sep 15, 2008 at 09:31:57AM -0400, Ronald J Kimball wrote:
>> HTML::FormFu handles this correctly.
>
> For a single form submission, maybe, but not for setting the "checked"
> attribute correctly in displayed forms. I just tried the form you
> suggested above, and it only displays the checkboxes correctly if
> there is no more than one checkbox selected (if more than one was
> selected, they all end up unchecked).
>
> The code in prepare_attrs() has expressions like '$value eq $original'
> and '$default eq $original' which (unless I'm missing something else
> again :-), don't allow for the possibility of more than one checkbox
> being selected.
It works for me with HTML::FormFu::Element::Checkboxgroup. I forgot to
mention that detail. :)
Ronald
More information about the HTML-FormFu
mailing list