Title: $(&#8230;).validate is not a function when using do_shortcode
Last modified: August 31, 2016

---

# $(…).validate is not a function when using do_shortcode

 *  Resolved [jsites](https://wordpress.org/support/users/jsites/)
 * (@jsites)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/)
 * When using the do_shortcode() to display my form, I get the following error:
 * > Uncaught TypeError: $(…).validate is not a function
 * It is occurring here:
    [http://sightlines.quantumdynamix.net/upcoming-webinars/webinar/exploring-the-state-of-sustainability-in-higher-education-2015/](http://sightlines.quantumdynamix.net/upcoming-webinars/webinar/exploring-the-state-of-sustainability-in-higher-education-2015/)
 * Here’s my shortcode:
 *     ```
       $webShortcode = '[register_free_webinar webid='.get_field('qd_webinar_id').' pageid='.get_the_ID().']';
       echo do_shortcode($webShortcode);
       ```
   
 * The get_field(‘qd_webinar_id’) uses the long numeric value of the webinar’s ID
   from it’s URL.
 * Then the pageid is set to the current custom post type post’s id, because I’m
   going to be doing some other stuff once the form is submitted on this page.
 * My returned shortcode that I run is:
 * > [register_free_webinar webid=3078989171299094273 pageid=1347]
 * If I just copy and paste the above shortcode into the content editor, the form
   displays without any errors about .validate().
 * If I run this php:
 *     ```
       $webShortcode = '[register_free_webinar webid=3078989171299094273 pageid=1347]';
       echo do_shortcode($webShortcode);
       ```
   
 * I also get the validate() error, so it is not a problem with my php pulling the
   dynamic content.
 * Is there something with the plugin that doesn’t allow using do_shortcode() with
   this?
 * Any thoughts on why this is happening, or how to resolve it?
 * [https://wordpress.org/plugins/gotowp/](https://wordpress.org/plugins/gotowp/)

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

 *  Thread Starter [jsites](https://wordpress.org/support/users/jsites/)
 * (@jsites)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6939801)
 * It appears to be some issue with calling the jQuery Validate plugin. In my functions
   files, I registered and enqueued that .js file, and everything works now.
 *  Plugin Author [brandonmuth](https://wordpress.org/support/users/brandonmuth/)
 * (@brandonmuth)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6939966)
 * Thanks for the great info! Looking into it now and will release an update soon.
   Appreciate the detailed info – always helps with improving the plugin. Have a
   great day!
 *  Plugin Contributor [pankajagrawal](https://wordpress.org/support/users/pankajagrawal-1/)
 * (@pankajagrawal-1)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6940117)
 * fixed “Uncaught TypeError: $(…).validate is not a function” error, please check
   and let us know if any issue
 *  Thread Starter [jsites](https://wordpress.org/support/users/jsites/)
 * (@jsites)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6940121)
 * I just commented out my JS call to the Jquery Validate, and still had the error.
 * Then, I udpated the plugin, and everything is working great now. So the plugin
   update did the trick.
 * Thanks.
 *  Plugin Author [brandonmuth](https://wordpress.org/support/users/brandonmuth/)
 * (@brandonmuth)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6940122)
 * [@jsites](https://wordpress.org/support/users/jsites/) – glad update worked. 
   Thanks for letting us know.

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

The topic ‘$(…).validate is not a function when using do_shortcode’ is closed to
new replies.

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

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [validate](https://wordpress.org/support/topic-tag/validate/)

 * 5 replies
 * 3 participants
 * Last reply from: [brandonmuth](https://wordpress.org/support/users/brandonmuth/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/validate-is-not-a-function-when-using-do_shortcode/#post-6940122)
 * Status: resolved