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.

Date Picker not working

  1. Hi. The Calendar icon is not displaying for the datepicker fields on my form.

    http://livingsounds.ca/book-an-appointment/

    Any ideas?

    Thanks.

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  2. Richard Vav
    Administrator

    The reason the calendar icon isn't being displayed for the datepicker is because the datepicker js isn't being loaded, that's also why the datepicker itself isn't working either. You probably have a plugin or theme conflict which is preventing the datepicker js from being loaded. You will need to try disabling and then re-enabling your plugins one at a time to find the culprit. http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  3. Thanks. That page helped me narrow it down.

    It's not a plugin conflict. It appears to be an issue with the theme.

    You mentioned that the datepicker js isn't being loaded. Any ideas how my theme could be causing this javascript not to load?

    Is it the way I'm including Jquery perhaps?

    I've tried enqueueing jQuery but then none of my jQuery works.

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  4. Richard Vav
    Administrator

    Which way are you including jquery, you mentioned you have tried enqueueing it before but that it breaks whatever is using jquery, that is probably because the scripts are being loaded in the wrong order. I had a similar problem with my site but I solved that my enqueueing jquery so it loaded in head while I enqueued other manually added scripts to load in the footer.

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  5. I also notice that the form ajax still works but the Calendar icon still doesn't appear.

    So it looks like jQuery is working but the jQuery UI isn't? Does this make sense?

    Also, how do I control whether the scripts load in the head or the footer with wp_enqueue_scripts?

    Thanks

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  6. Richard Vav
    Administrator

    I have the following code in my functions file to load jquery in the head

    add_action('wp_enqueue_scripts','my_scripts_method');
    function my_scripts_method(){
        wp_deregister_script('jquery');
        wp_register_script('jquery','http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
        wp_enqueue_script('jquery');
    }

    This is how I load jquery ui in the footer, it is the 'true' at the end of the call that tells it to load in the footer. I place this in the header file before wp_head

    wp_enqueue_script('jquery ui','https://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js',array('jquery'),false,true);
    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  7. Richard Vav
    Administrator

    Just took another look at your page and it seems jquery is being loaded twice which could be causing problems.

    Posted 13 years ago on Tuesday January 17, 2012 | Permalink
  8. SailChick
    Member

    I am also having trouble with the calendar date picker. But it is across all of my sites which have worked before, and now they are not. What do you suggest to fix this issue?

    Posted 13 years ago on Wednesday January 18, 2012 | Permalink
  9. Richard Vav
    Administrator

    @SailChick you will need to post a link to one of the affected forms so we can get a look at the pages source code, also have you tried the plugin/theme conflict suggestions http://www.gravityhelp.com/documentation/page/Testing_for_a_Theme/Plugin_Conflict

    Posted 13 years ago on Wednesday January 18, 2012 | Permalink
  10. SailChick
    Member

    http://www.paradisevillasbelize.com/booking-procedures/

    I have SEVERAL sites so to do this process for all of them really seems tedious. I just uploaded the plugin a few days ago to this site; but I checked other sites that have had the forms for a few years and they are not working either.

    If there is a newer download for Gravity Forms I would prefer to use that.

    Thank you very much for the prompt response.

    Posted 13 years ago on Wednesday January 18, 2012 | Permalink
  11. Richard Vav
    Administrator

    @SailChick What version of gravity forms are you using, the current release in v1.6.2, it's always recommended to keep wordpress, themes, and plugins up-to-date because with new releases not only do you get new features but you also get important bug and security fixes.

    Posted 13 years ago on Wednesday January 18, 2012 | Permalink
  12. Richard Vav
    Administrator

    @SailChick, it looks like that site is using a six month old version of gravity forms, you really should update your installations to v1.6.2

    Posted 13 years ago on Wednesday January 18, 2012 | Permalink
  13. Hi. I still haven't fixed the issue with my calendar not showing up.

    http://livingsounds.ca/book-an-appointment/

    Here is what I've tried so far and nothing has fixed it.

    1. I disabled every plugin
    2. I turned off all of my custom CSS
    3. I turned off all of my custom javascript
    4. I setup the jQuery enque script so it is only loading jQuery once
    5. I updated Gravity Forms and WordPress to the most recent versions

    Can anyone see anything else that might be causing the issue?

    Any help would be really appreciated.

    Thanks.

    Posted 13 years ago on Tuesday January 31, 2012 | Permalink
  14. blackmambo
    Member

    I just had a similar problem. Though the icon would load properly, the calendar itself would not.

    After testing against each plugin, I found this would only happen when the MailChimp plugin was active.

    Any ideias on what can be the problem?

    Thanks.

    Posted 13 years ago on Friday July 20, 2012 | Permalink
  15. @blackmambo, please start a new topic for your specific issue and we'll help you there. Please provide a link to your site where this problem can be observed, and we will check it out. Thank you.

    Posted 13 years ago on Saturday July 21, 2012 | Permalink

This topic has been resolved and has been closed to new replies.