updateValidatorOption() method

Update option of particular validator for given field
updateValidatorOption(
field: String,
validator: String,
name: String,
value: Any
): Core
(* denotes a required parameter)
ParameterTypeDescription
field*StringThe field name
validator*StringThe validator name
name*StringThe option's name
value*AnyThe option's value
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.updateValidatorOption(...);
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.updateValidatorOption(...);

See also