Events
A collection of events that you can hook on
After initializing the form with FormValidation.formValidation(), you can listen on events provided by formValidation or its plugins.
Using in the browser
<script src="/vendors/formvalidation/dist/js/FormValidation.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function(e) {
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on(EVENT_NAME, function(event) {
...
});
});
</script>
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on(EVENT_NAME, function(event) {
...
});
The next sections list all of events provided by library.