Re: Re: db_dataobject_formbuilder and checkbox

From: Date: Sat, 08 Jan 2005 01:43:15 +0000
Subject: Re: Re: db_dataobject_formbuilder and checkbox
References: 1 2 3 4 5 6 7  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16812@lists.php.net to get a copy of this message
On Thu, 06 Jan 2005 17:42:48 +0100, Arne Gellhaus <arne.gellhaus@gellhaus.de> wrote: > Markus Wolff wrote: > > > Actually, I don't see the value in adding yet another option for > > boolean fields when this can easily be done with enum. I mean, > > configuring an enum field to accept only "yes" or "no" is not that > > hard, and you'd need similar configuration for a boolean field to > > determine what values it should write into the database anyway (i.e. > > 0/1 vs. 'Y'/'N' etc.). > > It is not about the fieldtype in the database but about the presentation > to the user. A checkbox field is easier to handle and is the standard > way to ask a user for yes/no descisions. I think a select field with > only 2 entries is worthless and 2 radio buttons are harder to spot, so i > prefer a checkbox. > I've added booleanFields to FormBuilder. Looks like it was 19 lines net added to FormBuilder.php. ;-) -- Justin Patrin

« previous php.pear.general (#16812) next »