Forums

js error

webcrea 23 Jul, 2018
Hi,

A form works well when i call it from admin but on the front i have this error in the console :

TypeError: jQuery.fn.form.settings is undefined

in g2.forms.js:10:3
$.G2.forms.initializeForm = function (Form){
var validationRules = {};

jQuery.fn.form.settings.rules.required = function(value){
if(value){
return true;
}else{
return false;
}
};
thanks
healyhatman 24 Jul, 2018
Is that your own code? If so replace the first $ with jQuery
webcrea 24 Jul, 2018
Hello Healy,
Unfortunatly that's chrono generated code.
I isolated the bug, it come from the template (gantry)
I try to solve this issue with easy jquery but one config works for one issue but not for all :-( Grrr
Thanks
This topic is locked and no more replies can be posted.