Title: Javascript error in shortcode builder &#8211; FIX
Last modified: September 1, 2016

---

# Javascript error in shortcode builder – FIX

 *  [misthero](https://wordpress.org/support/users/misthero/)
 * (@misthero)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-in-shortcode-builder-fix-1/)
 * in file CFDBViewShortCodeBuilder.php line 1833 presents a little typo that breaks
   javascript execution if wp debug is enabled
 * `jQuery('#header_cntl').prop("checked", <?php echo $this->requestParams['$postedHeader']
   == 'false' ? 'false' : 'true' ?>); // default = true`
 * this line cause a undefined index error ‘$postedHeader’ is not defined
 * change it like this
 * `jQuery('#header_cntl').prop("checked", <?php echo $this->requestParams['postedHeader']
   == 'false' ? 'false' : 'true' ?>); // default = true`
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-in-shortcode-builder-fix-1/#post-7553933)
 * Ok, will fix.

Viewing 1 replies (of 1 total)

The topic ‘Javascript error in shortcode builder – FIX’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/javascript-error-in-shortcode-builder-fix-1/#post-7553933)
 * Status: not resolved