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.

Datepicker not working

  1. The jQuery datepicker is not working for us - the icon shows in FF and Safari (not Chrome) but does not show anything when clicked and the input box does not accept entry. In Chrome, it functions just like a regular text input but no icon. It's possible (likely?) that this could have something to do with the custom theme, but we're not sure how to chase down the culprit. All scripts appear to be enqueued correctly. Any help would be greatly appreciated.

    Link: http://web.esm.rochester.edu/concerts/session/

    Posted 13 years ago on Wednesday May 11, 2011 | Permalink
  2. The quickest way to test to see if it's a theme or plugin conflict is to follow the instructions here:

    http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    It could be an issue with the theme. I don't see any Javascript errors and the scripts appear to be there.

    Posted 13 years ago on Wednesday May 11, 2011 | Permalink
  3. Thanks for the quick response - it does work when switching to Twenty Ten (except in Chrome - still no icon), so it must be something wrong in our theme. Any further ideas you might have for troubleshooting would be helpful, but it's definitely not a Gravity Forms problem! Except for the Chrome thing, but I don't imagine you overlooked that originally.

    Posted 13 years ago on Thursday May 12, 2011 | Permalink
  4. If you send us a WordPress admin login for this site and an FTP login via our Contact Us form we can take a look at your theme files and see what is going on.

    Posted 13 years ago on Thursday May 12, 2011 | Permalink
  5. Turns out it was a problem with some HTTPS stuff that was going on, so things are getting there. However, we're not using the Gravity Forms CSS and already have jQuery UI (both the JS from the Google CDN and our own customized CSS) included in our theme. Is there a good way to dequeue the included Datepicker UI JS without editing the Gravity Forms files? The included Datepicker JS doesn't grab all the classes needed for styling and is also redundant in our case. We've done this for now, in both places in form_display.php:

    //wp_enqueue_script("gforms_ui_datepicker", GFCommon::get_base_url() . "/js/jquery-ui/ui.datepicker.js", array("jquery"), GFCommon::$version, true);
    //wp_enqueue_script("gforms_datepicker", GFCommon::get_base_url() . "/js/datepicker.js", array("gforms_ui_datepicker"), GFCommon::$version, true);
    wp_enqueue_script("gforms_datepicker", GFCommon::get_base_url() . "/js/datepicker.js", array("jqueryui"), GFCommon::$version, true);
    Posted 13 years ago on Tuesday May 17, 2011 | Permalink