Re: FormBuilder + DataObject and checkboxes

From: Date: Wed, 25 May 2005 06:21:07 +0000
Subject: Re: FormBuilder + DataObject and checkboxes
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19367@lists.php.net to get a copy of this message
Ok thanks for the tip I have to use advcheckbox for all checkboxes. It would be good if this was default :) Here is what I have to do function preGenerateForm() { $this->fb_preDefElements['alive'] = HTML_QuickForm::createElement('advcheckbox','alive','Alive',null,null,$this->alive); } :) 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 --PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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