PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Gravity Forms + WordpressMU + Domain Mapping = problem

  1. Hoping someone will be able to help with this one. I have Wordpressmu set up using subfolders ( I'm using the Domain Mapping plugin to map a domain name to a specific blog. So resolves to

    Got everything working and ran into a weird snag with Gravity Forms. I have a form that uses date fields amongst others. Posting that form via shortcode on a page, it works perfectly, IF the page is a Main Page. As soon as I make it a sub-page, the form breaks. Tracked it down to the jquery.ui.datepicker being the issue -- jquery seems not to load correctly. If I manually link to jquery in the header template of the site, works fine.

    I've gone into form_display.php and fiddled with the enqueue_form_script function on line 506, but no luck.

    Any thoughts as to why jQuery wouldn't be loading under that situation?

    Posted 12 years ago on Thursday February 25, 2010 | Permalink
  2. Haven't had anyone else using MU report this issue. If the jquery isn't loading it could be an issue with the enqueue in WordPress MU itself. We load the scripts via the built in enqueue process so this is something WordPress handles.

    Is the script not being output on the page?

    Posted 12 years ago on Thursday February 25, 2010 | Permalink
  3. Here's what I get in the header on the forms page:

    <script type='text/javascript' src=''></script>


    <script type='text/javascript' src=''></script>

    So, the second script -- the one included with Gravity Forms -- is enqueueing correctly. The first one -- to Wordpress's included jquery script -- isn't.


    Posted 12 years ago on Monday March 1, 2010 | Permalink
  4. They both enqueue the same way, however the enqueue function is a WordPress function and not specific to Gravity Forms so it's not a function we control... we just tell it which JS to load. It could be a bug in WordPress MU.

    Try enqueueing the WordPress jQuery JS in the themes function.php file and see if it loads correctly from there.

    You may have to try getting in touch with one of the WordPress MU developers as there is no reason why the conditional logic enqueue would work and the standard WordPress jQuery enqueue would not unless there is some sort of bug with the MU enqueue functionality.

    Posted 12 years ago on Monday March 1, 2010 | Permalink