I´m getting this error when I set a field value using the method setItemValue after removing a block inside the form. Note, the removed field is not the field which I´m setting it value.
The removed item is a block
Uncaught TypeError: Cannot read property ‘vals’ of undefined dhtmlxform.js:2134