require_once 'HTML/QuickForm.php';
void HTML_QuickForm::setElementError (string $element, string $message)
void HTML_QuickForm::setElementError
Set error message for a form element. Errors are usually assigned to elements by validate() method. Use this if you need to explicitly set error message for an element.
Name of form element to set error for
Error message
throws no exceptions thrown
since 1.0
This function can not be called statically.