Title: Shortcode Throwing JS error
Last modified: August 21, 2016

---

# Shortcode Throwing JS error

 *  Resolved [plankguy](https://wordpress.org/support/users/plankguy/)
 * (@plankguy)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/)
 * I’m getting this error when adding a form via shortcode to a page:
 * **Uncaught TypeError: Cannot set property ‘nodeValue’ of undefined**
 * Culprit is:
 *     ```
       $("div.ss-radio label:last+span.ss-q-other-container").prev().contents().filter(function() {
            return this.nodeType == 3;
       })[0].nodeValue = "Other:";
       ```
   
 * I don’t want to alter plugin code files, any idea on how to fix the error?
 * [http://wordpress.org/extend/plugins/wpgform/](http://wordpress.org/extend/plugins/wpgform/)

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

 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751797)
 * What version of the plugin are you running? Just this morning I updated a version
   which fixed a jQuery syntax error.
 * Which browser are you seeing this in?
 *  Thread Starter [plankguy](https://wordpress.org/support/users/plankguy/)
 * (@plankguy)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751802)
 * V0.46, running in Chrome V26.0.1410.65
 *  Thread Starter [plankguy](https://wordpress.org/support/users/plankguy/)
 * (@plankguy)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751804)
 * I’ll try 0.47, just saw that there’s an update! I’ll keep you posted…
 *  Thread Starter [plankguy](https://wordpress.org/support/users/plankguy/)
 * (@plankguy)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751807)
 * Updated & getting same error.
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751812)
 * Can you try turning off the option to Override the Google Default text on the
   Advanced Options tab and let me know if the problem persists?
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751816)
 * Nevermind, I’ve replicated the problem.
 *  Thread Starter [plankguy](https://wordpress.org/support/users/plankguy/)
 * (@plankguy)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751819)
 * That fixed it! I’ll my eyes peeled for an update that fixes that issue.
 * Thanks for you quick help, great plugin, nice job!
 *  Plugin Author [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * (@mpwalsh8)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751828)
 * I have fixed this in v0.49 which I just released.

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

The topic ‘Shortcode Throwing JS error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpgform_8cc59f.svg)
 * [Google Forms](https://wordpress.org/plugins/wpgform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpgform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpgform/)
 * [Active Topics](https://wordpress.org/support/plugin/wpgform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpgform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpgform/reviews/)

## Tags

 * ["js error"](https://wordpress.org/support/topic-tag/js-error/)
 * [google forms](https://wordpress.org/support/topic-tag/google-forms/)

 * 8 replies
 * 2 participants
 * Last reply from: [Mike Walsh](https://wordpress.org/support/users/mpwalsh8/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/shortcode-throwing-js-error/#post-3751828)
 * Status: resolved