An array of group elements' values will be passed to validation function. To validate grouped elements as separate entities, use addGroupRule().
2016/07/26 · I need to add validation for HTML_QuickForm. I tried but still cannot see any error message. This is the code I'm using.
Manual :: Adds a validation rule for the given group - PHP
pear.php.net › manual › package.html.ht...
Use addGroupRule() when you need to validate elements inside the group. Also use addRule() if you need to validate the group as a whole.
* Use addRule if you need to validate the group as a whole. In this case,. * the same rule will be applied to all elements in the group.
2016/05/02 · You can not add rule for individual group element. Rule can be added only for top level elements which in this case reflects entire group.
2021/01/07 · This error may occur, If you have added any formRule in a custom form in any of your extension(s) . For example: $this->addFormRule(array(' ...
I was wondering ... Isn't there any way to make $form->addRule('email', 'Please insert your email', 'email'); and complare aslo a reqiured field ?
Simple addRule() call in HTML_QuickForm. <?php $form->addRule('username', 'Username should be at least 5 symbols long', 'minlength', 5, 'client'); ?> can be ...
Note the extra line, $form->addRule . This says that the element "MyTextBox" is required (ie, must not be left blank), and that if it is left blank the error ...
HTML_QuickForm::addRule() — Adds a validation rule for the given field; HTML_QuickForm::addGroupRule() — Adds a validation rule for the given group ...