Documentation

ShowWarnings

void
CAdminTabControl::ShowWarnings(
	string $FORM,
	CAdminException $messages[,
	mixed $arFields = false]
)

The method sShows form processing errors by highlighting form fields whose values are invalid. Deprecated method

Parameters

Parameter Description
FORM The form tag name attribute value.
messages Instance of CAdminException class, containing error messages.
arFields Array of matches of the following type: "parameter_id_with_error" => "field_name_in_form". Optional. Fields with the same name as the parameter ID with error are searched by default.

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);?>


© «Bitrix24», 2001-2024