#7: Custom Error Handler
This example highlights the use of a custom error handler. As we've seen in the previous example, the script can display the errors in one of three ways: alerting them one by one, alerting them all at a time or displaying the result in the webpage. But sometimes you need a little more control.
This demo bypasses that built-in functionality and passes the error results to a custom function by using the rsv.customErrorHandler configuration setting and defining our own function: myCustomErrorDisplayFunction. It displays each errors next to the appropriate field, and turns the field label red. See the code below (or view source on the page) to see how it's done.