HTML_QuickForm::getElementError() (Previous) (Next) HTML_QuickForm::registerRule()

View this page in Last updated: Sun, 17 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTML_QuickForm::setElementError()

HTML_QuickForm::setElementError() -- Set error message for a form element

Description

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.

Parameter

string $element

Name of form element to set error for

string $message

Error message

Throws

throws no exceptions thrown

Note

since 1.0

This function can not be called statically.

HTML_QuickForm::getElementError() (Previous) (Next) HTML_QuickForm::registerRule()

Download Documentation Last updated: Sun, 17 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.