disableValidator() method

Disable particular validator for given field
disableValidator(field: String, validator: String): Core
(* denotes a required parameter)
ParameterTypeDescription
field*StringThe field name
validatorStringThe validator name. If it isn't specified, all validators will be disabled
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.disableValidator(...);
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.disableValidator(...);

See also