core.field.added event

Triggered after adding a field
The event is triggered after adding a field via the addField() method.
The event object contains the following properties:
PropertyTypeDescription
elementsHTMLElement[]The field elements
fieldStringThe field name
optionsObjectThe field options
Using in the browser
const fv = FormValidation.formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.field.added', function(event) {
...
});
Using with ES6 module
import formValidation from 'formvalidation/dist/es6/core/Core';
const fv = formValidation(
document.getElementById('demoForm'),
{
...
}
);
fv.on('core.field.added', function(event) {
...
});

See also