Title: JS error in plugin code
Last modified: April 25, 2023

---

# JS error in plugin code

 *  Resolved [xwerson](https://wordpress.org/support/users/xwerson/)
 * (@xwerson)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/js-error-in-plugin-code/)
 * Hello
 * I have a important form. I show/hide fields with checkbox. Its worked before 
   but now give this error in console:
 *     ```wp-block-code
       caught TypeError: Invalid attempt to spread non-iterable instance.
       In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
           at _nonIterableSpread (nonIterableSpread.js:2:9)
           at _toConsumableArray (toConsumableArray.js:10:95)
           at Wpcf7cfForm.form.updateSimpleDom (scripts_es6.js:111:31)
           at scripts_es6.js:425:18
       ```
   
 * and no more show/hide groups.
 * Its some object – array mixing error in plugin code?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjs-error-in-plugin-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/js-error-in-plugin-code/#post-16688397)
 * Your theme or another plugin is most likely loading an outdated version of jQuery.
 * When I visit your website I see a lot of other problems though. There is a JS
   error that resides from your theme, and the conditional fields javasript file
   isn’t loaded, probably because it’s not included by w3 total cache.
 * If you think the problem might be coming from a clean setup, please reproduce
   your form here: [https://conditional-fields-cf7.bdwm.be/form-tester/](https://conditional-fields-cf7.bdwm.be/form-tester/)

Viewing 1 replies (of 1 total)

The topic ‘JS error in plugin code’ is closed to new replies.

 * ![](https://ps.w.org/cf7-conditional-fields/assets/icon-256x256.png?rev=2072595)
 * [Conditional Fields for Contact Form 7](https://wordpress.org/plugins/cf7-conditional-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-conditional-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-conditional-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-conditional-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-conditional-fields/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/js-error-in-plugin-code/#post-16688397)
 * Status: resolved