Getting Started
Events

registerFilter() method

Register a filter
You can remove the filter by using the deregisterFilter() method .
            
registerFilter ( name : String , func : Function ) : Core
(* denotes a required parameter)
Parameter Type Description
name * String The name of filter
func * Function The filter function
Using in the browser
            
const fv = FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
fv . registerFilter ( ... ) ;
Using with ES6 module
            
import formValidation from 'formvalidation/dist/es6/core/Core' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
fv . registerFilter ( ... ) ;