Re: FormBuilder + DataObject and checkboxes
| From: | Dan Rossi | Date: | Wed, 25 May 2005 05:26:32 +0000 |
| Subject: | Re: FormBuilder + DataObject and checkboxes | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19366@lists.php.net to get a copy of this message | ||
FormBuilder is rendering the int field with a checkbox I am not preformatting anything here however, when it loads having it being checked, it renders as
<input name="alive" type="checkbox" value="1" id="qf_065abb" checked="checked">
therefore after each update its still sending 1 as the value , how do i set this up as boolean then ?
On 25/05/2005, at 2:53 PM, Justin Patrin wrote:
On 5/24/05, Dan Rossi <pear@electroteque.org> wrote:I have finally got FormBuilder working into my apps with both dynamic and static flexy renderers. I have just discovered an issue where I uncheck a checkbox and the setter isnt being called because its not set. Is there a workaround for this ? My setter checks if the value isnt set and then sets it back to zero. Let me know cheers.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. -- Justin Patrin