I'm using Form.IO JS library for developing various new forms. Recently, the need to perform some actions upon opening the form has been presented. So, I searched the documentation on form events. Except from 'change' / 'submit' / 'focus' / 'blur' events, no other event is firing after initialising my form. I'm providing some of my code below:
Formio.createForm(document.getElementById('formio'), components, formOptions)
.then(function(form) {
// Working
form.on('change', function() {
console.log('change');
});
// NOT WORKING
form.on('initialized', function() {
console.log('initialized');
});
// NOT WORKING
form.on('render', function() {
console.log('render');
});
});
Does someone have any ideas whatsoever on why those events are not firing? Thanks in advance!