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 ...
$form =& new HTML_QuickForm('frmTest', 'get');. // Use a two-label template ... $form->addRule('itxtTest', 'Test Text is a required field', 'required ...
2017/06/04 · I had this error QuickForm Error: nonexistent html element Element 'uploaded' does not exist in HTML_QuickForm::getElement() it output form the follow code.