Re: Re: db_dataobject_formbuilder and checkbox

From: Date: Thu, 06 Jan 2005 12:40:13 +0000
Subject: Re: Re: db_dataobject_formbuilder and checkbox
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16730@lists.php.net to get a copy of this message
Arne Gellhaus wrote:
Also, what about Yes/No? True/False? They could also be selects or radio buttons. Is this wanted?
For this to work i could use a enum field. Should i try to implement fb_booleanFields? I think the cvs version of FormBuilder is preferred?
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.). CU Markus

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