Re: QuickForm group validation rules
| From: | Alexey Borzov | Date: | Fri, 19 Aug 2005 07:45:29 +0000 |
| Subject: | Re: QuickForm group validation rules | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20477@lists.php.net to get a copy of this message | ||
Hi,
zorro wrote:
I created a rule to validate a group of 3 text fields. It works great as long as the group is 'required'. If it is optional it doesn't get called even though I am entering data in the fields. If I add rules for the indivdual fields like a numeric check then my group validation is called but no error message is displayed! The form will not progress to the next page though which is correct behaviour. This seems like a bug. Has anyone else seen this type of behaviour with group validation? Does anyone have a work around?I've seen all types of weird behaviour and noticed a following tendency: if a person claims a bug in QuickForm without showing the code to trigger it then a) he is too ashamed to show his code due to its low quality; b) the bug is actually within his code and extremely easy to spot.