core.form.invalid event
Triggered when the form is completely validated, and all fields are invalid
The event
object contains the following property:
Property | Type | Description |
---|
formValidation | Core | The FormValidation instance |
Using the global script in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.invalid', function(event) {
});
Using the ES6 module
import { formValidation } from '/path/to/@form-validation/cjs/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.invalid', function(event) {
});
Using the npm package
import { formValidation } from '@form-validation/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.invalid', function(event) {
});
See also