{"id":5923,"date":"2019-02-15T10:03:24","date_gmt":"2019-02-15T15:03:24","guid":{"rendered":"https:\/\/www.eparrs.com\/blog\/blog\/?p=5923"},"modified":"2024-02-29T22:33:07","modified_gmt":"2024-03-01T03:33:07","slug":"a-new-datepicker-for-contact-form-7-forms","status":"publish","type":"post","link":"https:\/\/www.eparrs.com\/blog\/a-new-datepicker-for-contact-form-7-forms\/","title":{"rendered":"A New Datepicker for Contact Form 7 Forms &#8211; Contact Form 7 Datepicker Plugin No Longer Maintained"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Yup, I felt the same as you when I realized that the ole\u2019 faithful Contact Form 7 Datepicker plugin was no longer being maintained. I found a new datepicker for Contact Form 7 forms! <\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s no such thing as staying too comfortable with any website for very long anymore before something needs to be changed in some way shape or form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So&#8230; off I went to hunt for a new means of being able to offer a pop out calendar date selector for a Contact Form 7 form on a client\u2019s website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s when I finally came across the WP Datepicker plugin by Fahad Mahmood.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"269\" src=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image01.webp\" alt=\"screen print of the WP Datepicker plugin\" class=\"wp-image-8523\" srcset=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image01.webp 600w, https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image01-300x135.webp 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">So&#8230;now if you are ready to try this plugin out&#8230; once you have installed and activated this plugin, go to your WordPress Dashboard Settings &gt; WP Datepicker.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the WP Datepicker Settings, at the first textbox with a drop down list, you will need to select your given language. Canadian (nor American) English was not available, so I selected the next best option, being Great Britain English.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the second field (if it is not already there) make sure to type the following in:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">.dp-field<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;then scroll down the page and click on the \u201cSave Changes\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"488\" src=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image02.webp\" alt=\"screen print of WP Datepicker Settings page\" class=\"wp-image-8524\" srcset=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image02.webp 600w, https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image02-300x244.webp 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">You already have your Contact Form 7 plugin \u201cInstalled\u201d and \u201cActivated\u201d&#8230; and your form itself created. So, let\u2019s now head on over to your form where you were using the ole\u2019 faithful Contact Form 7 Datepicker plugin (which, by the way, you should have at least Deactivated by this point in time)&#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From your WordPress Dashboard sidebar, click on \u201cContact\u201d and mouse over the name of your form. When \u201cEdit\u201d appears as one of the options, click on it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now&#8230; in the Form, locate the line where you have been using the shortcode for the Contact Form 7 Datepicker plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my case, I was using the following:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">[date* Date date-format:mm\/dd\/yy placeholder &#8220;Date (required)&#8221;]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Take that line of code off your form and keep it by pasting it into a Notepad for safe keeping. This way, if you want to restore that line of code later on for whatever reason, then you can.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, where you had that line of code, you will be replacing it with the following shortcode:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">[text* Date class:dp-field &#8220;Date (required)&#8221;]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then scroll down to the bottom of the Form and click on the \u201cSave\u201d button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now it is time to click on the Mail tab of your form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In my case the following:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">[Date]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;is now replaced with:<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">[Date]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8230;and this new shortcode is highlighted, so I copied and pasted it over top of the former shortcode [Date] that I was using inside the \u201cMessage Body\u201d on the appropriate line, just to be sure all will work as it should&#8230; then scroll down this form and click the \u201cSave\u201d button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now all that is left to do is for you to test that your form works the way you want it to.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using a cache plugin (which for obvious reasons, you should be) then be sure to purge your website cache and reload your website form (I even used a different browser to make real sure my form worked well) and then take your form for a test run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When this issue happened to me, I was left scrambling and could find no easy method without a LOT of searching, and even then I ended up having to contact the developer of the WP Datepicker. What a gentleman and a scholar Mr. Mahmood is too, I\u2019d like to add here. Even with our differences in language, he was finally able to get through to me what I needed to do to make my form work as before.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, there are very little differences between the two datepickers, though yes, the \u201cDate field\u201d for WP Datepicker is slightly longer and not quite as high as the previous plugin used. Would users of this form notice? No likely.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"384\" src=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image03.webp\" alt=\"screen print of Contact Form 7 form before WP Datepicker is used\" class=\"wp-image-8525\" srcset=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image03.webp 600w, https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image03-300x192.webp 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"381\" src=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image04.webp\" alt=\"screen print of Contact Form 7 form after WP Datepicker is used\" class=\"wp-image-8526\" srcset=\"https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image04.webp 600w, https:\/\/www.eparrs.com\/blog\/wp-content\/uploads\/2019\/02\/a-new-datepicker-for-contact-form7-forms-image04-300x191.webp 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Hope you find this post helpful. Should you have any questions regarding the WP Datepicker plugin or if you simply want to chat about this plugin, I hope you will feel free to leave me a comment below. I always respond to all comments.<\/p>\n\n\n<!--Yasr Overall Rating Shortcode--><div class=\"yasr-overall-rating\"><div class=' yasr-rater-stars'\r\n                           id='yasr-overall-rating-rater-58b97a55ea627'\r\n                           data-rating='4.9'\r\n                           data-rater-starsize='32'>\r\n                       <\/div><\/div><!--End Yasr Overall Rating Shortcode-->\n","protected":false},"excerpt":{"rendered":"<p>Yup, I felt the same as you when I realized that the ole\u2019 faithful Contact Form 7 Datepicker plugin was no longer being maintained. I found a new datepicker for Contact Form 7 forms!<\/p>\n","protected":false},"author":1,"featured_media":8521,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":4.9,"yasr_post_is_review":"yes","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-5923","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-archived"],"yasr_visitor_votes":{"stars_attributes":{"read_only":true,"span_bottom":"<div class='yasr-small-block-bold'><span class='yasr-visitor-votes-must-sign-in'>You must sign in to vote<\/span><\/div>"},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/posts\/5923","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/comments?post=5923"}],"version-history":[{"count":0,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/posts\/5923\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/media\/8521"}],"wp:attachment":[{"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/media?parent=5923"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/categories?post=5923"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eparrs.com\/blog\/wp-json\/wp\/v2\/tags?post=5923"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}