Conditional Fields Not Working as of Version 1.7.x
-
Hello,
We’ve reverted our website to using CF7 CF 1.6.5 as it was the last version of the plugin that worked on our development and production environments. When updating the plugin to any of the 1.7.x versions we see the following errors:
In Google Chrome:
Uncaught TypeError: Cannot read property 'length' of undefined at scripts_es6.js:709 at Array.map (<anonymous>) at Object.get_simplified_dom_model (scripts_es6.js:708) at Object.get_nested_conditions (scripts_es6.js:633) at Wpcf7cfForm../js/scripts_es6.js.Wpcf7cfForm.updateGroups (scripts_es6.js:213) at new Wpcf7cfForm (scripts_es6.js:73) at HTMLFormElement.<anonymous> (scripts_es6.js:926) at Function.each (jquery.js:2) at a.fn.init.each (jquery.js:2) at Module../js/scripts_es6.js (scripts_es6.js:925)
In Firefox:
TypeError: item.name is undefined - scripts_es6.js:709:39 simplified_dom scripts_es6.js:709 map self-hosted:243 get_simplified_dom_model scripts_es6.js:708 get_nested_conditions scripts_es6.js:633 updateGroups scripts_es6.js:213 Wpcf7cfForm scripts_es6.js:73 js scripts_es6.js:926 jQuery 2 each each js scripts_es6.js:925 Webpack 3 __webpack_require__ <anonymous> <anonymous>
Code Snippet Referenced:
708 simplified_dom = simplified_dom.map(function(item, i){ 709 var original_name_length = item.original_name == null ? item.name.length : item.original_name.length; 710 item.suffix = item.name.substring(original_name_length); 711 return item; 712 });
Active Plugins:
Advanced Custom Fields PRO
Contact Form 7
Contact Form 7 Conditional Fields
Responsive Menu
Yoast SEOI can send you a link to our development site if that’d help, but for the most part everything has been working as intended up until that release. I looked through the support forums, but I didn’t see any specific reference to this error type. Any help would be appreciated.
- The topic ‘Conditional Fields Not Working as of Version 1.7.x’ is closed to new replies.