[html-formfu] Re: Anyway to handle undef/0/1 Radiogroup
Hu Hailin
i at h2l.name
Tue Oct 19 10:23:24 GMT 2010
Well, I gave it up. To use -1/0/1 instead.
On Mon, Oct 18, 2010 at 8:41 PM, Hu Hailin <i at h2l.name> wrote:
> Hi,
>
> ===============
> - type: Radiogroup
> name: invitation
> options:
> - [ ~, 'do nothing']
> - [ 0, 'refuse']
> - [ 1, 'accept']
> ===============
>
> I tried to use a nullable db column to store such a status above and I
> have trouble in filling a NULL value from db into form back properly.
> The option whose value is ~( or '' ) will not be set checked="checked".
>
> Any advice or workaround?
>
> Thanks.
> --
> islue
>
--
islue
More information about the HTML-FormFu
mailing list