core.form.validating event

Triggered when starting validating the form
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.validating', 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.validating', 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.validating', function(event) {
// `event.formValidation` is the FormValidation instance
// which is the same as `fv`
});

See also