Error Handling
Errors can occur when the server is not available or invalid data is provided on an input form. Errors are handled by default and localized error messages are shown based on the configuration. However, it is also possible to intercept errors to display a custom error message or dialog. Below is an example of configuring a custom error handler.
<head> <script type="text/javascript"> function errorHandler(data) { alert('errorHandler ' + data); // Returning false will keep the default error handler from engaging. return false; } </head> <body> <div class="acc-portal" headerText="Customer Portal" token="…obtained via API…" onServerError="errorHandler"/> </body>