core.form.valid event event

Triggered when the form is completely validated, and all fields are valid
The event object contains the following property:
PropertyTypeDescription
formValidationCoreThe FormValidation instance
Using the global script in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.valid', function(event) {
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
});
Using the ES6 module
import { formValidation } from '/path/to/@form-validation/cjs/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.valid', function(event) {
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
});
Using the npm package
import { formValidation } from '@form-validation/bundle/popular';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.form.valid', function(event) {
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
});

See also