CAdminTabControl::ShowWarnings
void
CAdminTabControl::ShowWarnings(
string $FORM ,
CAdminException $messages [,
mixed $arFields = false]
)
The ShowWarnings method highlights fields whose values was
considered invalid during form processing.
Parameters
Parameter
Description
FORM
The value of the NAME attribute of the FORM tag.
messages
A CAdminException class
instance containing error messages.
arFields
An associated array in the format:
"invalid_parameter_id " => "form_field_name "
.
Optional parameter. By default, the system searches fields whose names
match the invalid parameter ID.
Example
if($e = $APPLICATION->GetException())
$message = new CAdminMessage(GetMessage("currency_error"), $e);
if($message)
echo $message->Show();
<form method="post" action="<?$APPLICATION->GetCurPage()?>" name="form1">
<!-- form -->
</form>
<?$tabControl->ShowWarnings("form1", $message);?>