Hi. The Calendar icon is not displaying for the datepicker fields on my form.
http://livingsounds.ca/book-an-appointment/
Any ideas?
Thanks.
Hi. The Calendar icon is not displaying for the datepicker fields on my form.
http://livingsounds.ca/book-an-appointment/
Any ideas?
Thanks.
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
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.
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.
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
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);
Just took another look at your page and it seems jquery is being loaded twice which could be causing problems.
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?
@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
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.
@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.
@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
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.
Can anyone see anything else that might be causing the issue?
Any help would be really appreciated.
Thanks.
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.
@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.