Custom Form Validation Using an Event
Custom JavaScript validation for forms allows you to create more specific input validation logic than built-in validators. In SurveyJS Form Library, you can add custom validation in two ways—with the onValidateQuestion
event or expressions. This example demonstrates how to handle the event. Switch between React, Vue, jQuery, Angular, and Vanilla JS to view the example for your JavaScript framework/library. Read more...