Getting Started

core.form.validating event

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