removeField() method

Remove given field by name
removeField(field: String): Core
(* denotes a required parameter)
ParameterTypeDescription
field*StringThe field name
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.removeField(...);
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.removeField(...);

See also