Re: QuickForm element group validation
| From: | Martin Qvistgård | Date: | Sun, 13 Apr 2003 13:04:45 +0000 |
| Subject: | Re: QuickForm element group validation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4830@lists.php.net to get a copy of this message | ||
Hi!
Oh, bummer....
Well, is there any way to make QuickForm place two elemnts in the same <td>
without using elementGroup? What I need to do is this:
[6 digit textbox]-[4 digit textbox] and I need to do a DB query to validate
the two textboxes together.
Apart from not beeing able to validate elementGroups with functions I think
that QuickForm is a beautiful thing! Thanks for all your work!
/martin
On Thursday 10 April 2003 13.49, you wrote:
> <martin.qvistgard@proficiens.se> wrote :
> > Hello!
> >
> > I have a small problem when trying to validate element groups with my own
> > rules. Everything works fine with the predefined ones, though.
> > I have made a 'fake' validation function that does nothing but return a
> > false bool. I register the rule and then try to use it. It works
> > flawlesly when used with addRule for a single element, but is ignored
> > when used with addGroupRule. What am I doing wrong?
>
> AddGroupRule does not support validation with function yet.
>
> Bertrand Mansion
> Mamasam