Title: Javascript error &#8211; Conditionals do not work at all.
Last modified: February 10, 2020

---

# Javascript error – Conditionals do not work at all.

 *  Resolved [dflavin](https://wordpress.org/support/users/dflavin/)
 * (@dflavin)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-conditionals-do-not-work-at-all/)
 * Jules, I got the following error when I ran the tutorial.
 * Uncaught TypeError: Cannot read property ‘0’ of undefined
    at Object.get_simplified_dom_model(
   scripts_es6.js:692) at Wpcf7cfForm../js/scripts_es6.js.Wpcf7cfForm.displayFields(
   scripts_es6.js:107) at scripts_es6.js:933 at Array.forEach (<anonymous>) at HTMLDocument.
   <anonymous> (scripts_es6.js:932) at i (jquery.js?ver=1.12.4-wp&189db0&189db0:
   2) at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp&189db0&189db0:
   2) at Function.ready (jquery.js?ver=1.12.4-wp&189db0&189db0:2) at HTMLDocument.
   J (jquery.js?ver=1.12.4-wp&189db0&189db0:2)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-conditionals-do-not-work-at-all%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [dflavin](https://wordpress.org/support/users/dflavin/)
 * (@dflavin)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-conditionals-do-not-work-at-all/#post-12423002)
 * I found which plugin was causing the problem!
    “Contact Form 7 Preview” I deactivated
   all of the contact form 7 plugins that I had down loaded & the problem went away.
   I then activated them one at a time, checking if the conditional fields worked.
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-conditionals-do-not-work-at-all/#post-12423279)
 * good to hear!
 *  Plugin Author [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * (@jules-colle)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-conditionals-do-not-work-at-all/#post-12423285)
 * i’ll do some tests with that plugin

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript error – Conditionals do not work at all.’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jules Colle](https://wordpress.org/support/users/jules-colle/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/javascript-error-conditionals-do-not-work-at-all/#post-12423285)
 * Status: resolved