×
日本語のページを検索
  • すべての言語
  • 日本語のページを検索
すべての結果
An array of group elements' values will be passed to validation function. To validate grouped elements as separate entities, use addGroupRule().
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 ...