Re: FormBuilder + DataObject and checkboxes

From: Date: Wed, 25 May 2005 16:22:00 +0000
Subject: Re: FormBuilder + DataObject and checkboxes
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19369@lists.php.net to get a copy of this message
On 5/24/05, Dan Rossi <pear@electroteque.org> wrote: > > On 25/05/2005, at 2:53 PM, Justin Patrin wrote: > >> > > > > What kind of fields is this? FB only makes checkboxes for Booleans, > > CrossLinks, and TripleLinks. And all 3 of those work fine. > > > > If you're putting your own checkbox field in your form and are having > > troubles, try the advcheckbox element. > > > > > > Hopefully this isnt too confusing, I am tending to annoy the list > lately ;) Ok my field is called alive and its type int(11) not null . > Its basically to flag something active and not active. > > Booleans should be int(1) unsigned, not int(11). If you set up boolean fields as int(1) unsigned then DO will automatically flag them as booleans and FB will treat them as booleans. Alternatively you can add them to the fb_booleanFields array, -- Justin Patrin

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