- Update chronoforms to v.4 and create from scratch all your forms
- Edit the chronoforms component to solve the problem
As the v4.0 version can be installed side by side with the old v.3.2 version you can combine both solutions. So you can solve manually the compatibility error and then do the form migration slowly.
Edit the Chronoforms component to solve the problem.
Edit the file:
components/com_chronocontact/libraries/includes/JSvalidation.php
and search:
Element.extend({
getInputByName2 : function(nome) {
el = this.getFormElements().filterByAttribute('name','=',nome)
return (el)?(el.length)?el:el:false;
}
});
Replace it with:
Element.implement({
getInputByName2 : function(nome) {
el = this.getFormElements().filterByAttribute('name','=',nome)
return (el)?(el.length)?el:el:false;
}
});
This changes the method definition to make it compatible with Mootools 1.2.5+
