Documentation

ShowMessage

ShowMessage(
  mixed message
);

The function is used to display error descriptions and other messages.

Function parameters

ParameterDescription
message Error message text or an array with the following keys:
  • TYPE - message type. The following types are available:
    • OK - simple message, displayed by using "notetext" CSS class.
    • ERROR - error message, displayed by using "errortext" CSS class
  • MESSAGE - message text.

Examples of use

<?
// display common message
ShowMessage(Array("TYPE"=>"OK", "MESSAGE"=>"Data saved."));
?>
<?
// display error message 
ShowMessage("Error! Please fill in the required fields!");
?>


© «Bitrix24», 2001-2024