setFieldOptions() method
Set the options for given field
setFieldOptions(field: String, options: FieldOptions): Core
(* denotes a required parameter)
Parameter | Type | Description |
---|
field * | String | The field name |
options * | FieldOptions | The field options |
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.setFieldOptions(...);
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.setFieldOptions(...);