Re: FormBuilder + DataObject and checkboxes
| From: | Justin Patrin | Date: | Wed, 25 May 2005 16:30:35 +0000 |
| Subject: | Re: FormBuilder + DataObject and checkboxes | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19370@lists.php.net to get a copy of this message | ||
On 5/24/05, Dan Rossi <pear@electroteque.org> wrote:
> 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);
> }
>
> :)
You shouldn't have to use advcheckbox...normal checkboxes work fine in
all of my forms. What browser are you using? What version of
FormBuilder? Have you modified it yourself?
Also, again, please stop and think before you post to the list.
Sending 4 replies to the same e-mail is annoying, wasteful, and
fragments the conversation. Think it all through and try everything
you can think of *before* you post again. If you want more immediate
help, use the IRC channel.
In addition, since you've gotten to into PEAR I'd think that you could
start looking at the source code more. It would be more helpful for
you to simply trace the code and figure out what might be wrong than
to pester us with off-the-wall questions and strange situations that
we can't understand. Figure out what's wrong, fix it, and send a
patch.
>
> 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
> >
>
>
--
Justin Patrin