Getting Started
Events

resetForm() method

Reset the form
This method also clears all the messages, hide the feedback icons, etc.
            
resetForm ( reset : Boolean ) : Core
Parameter Type Description
reset Boolean If true , the method resets field value to empty or remove checked , selected attributes
Using in the browser
            
const fv = FormValidation . formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
fv . resetForm ( ... ) ;
Using with ES6 module
            
import formValidation from 'formvalidation/dist/es6/core/Core' ;
const fv = formValidation (
document . getElementById ( 'demoForm' ) ,
{
...
}
) ;
fv . resetForm ( ... ) ;

See also