What this solution does
A developer module designed to display styled notifications regarding errors, successful form submissions, or data saving.
After installation, the script extends the global library by adding the method BX.dbogdanoff_alert(message, type). Calling this method triggers a notification that automatically disappears after 3 seconds.
The first argument is the message text, and the second is the type (success, error, warning). If the type is omitted, the notification appears in blue.
Usage examples:
BX.dbogdanoff_alert("Thank you for your request!", "success");
BX.dbogdanoff_alert("Do not forget to complete the required action", "warning");
BX.dbogdanoff_alert("Error: data not saved, please try again later", "error");
The method must be called after the DOM tree is loaded, such as within the BX.ready callback function or an equivalent. The solution has no dependencies and does not require jQuery or other third-party libraries.
General iT can install and configure this module and check how it works on your website.