<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Date Picker Validation in datefield</title>
		<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield</link>
		<description>Gravity Support Forums Topic: Date Picker Validation in datefield</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:22:51 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/date-picker-validation-in-datefield" rel="self" type="application/rss+xml" />

		<item>
			<title>marcopako on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-207218</link>
			<pubDate>Fri, 12 Apr 2013 13:31:09 +0000</pubDate>
			<dc:creator>marcopako</dc:creator>
			<guid isPermaLink="false">207218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Working like a charm now :) Thank you very much Chris!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-204673</link>
			<pubDate>Wed, 10 Apr 2013 23:06:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">204673@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Marco, I used the jQuery UI datepicker which is included with WordPress.   I created a JavaScript file named custom-datepicker.js and saved it in my child theme folder, in a subfolder 'js': &#60;a href=&#34;http://pastebin.com/ucWRpX6u&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/ucWRpX6u&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Then I included that in my page by using this code in my theme's functions.php: &#60;a href=&#34;http://pastebin.com/adtEwvdi&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/adtEwvdi&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will need to change the form ID from 3 on line 5 of this code &#60;a href=&#34;http://pastebin.com/adtEwvdi&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/adtEwvdi&#60;/a&#62; , and you will need to change the input ID from input_3_4  on line 5 of this code &#60;a href=&#34;http://pastebin.com/ucWRpX6u&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/ucWRpX6u&#60;/a&#62; to the ID of the text field where you want to use a datepicker with a custom date format.  You will also need to specify your date format on line 9 of the custom-datepicker.js file.  If you have trouble, please post a URL so we can take a look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>marcopako on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-196899</link>
			<pubDate>Thu, 04 Apr 2013 17:54:50 +0000</pubDate>
			<dc:creator>marcopako</dc:creator>
			<guid isPermaLink="false">196899@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys, i get the same error message: &#34;Please enter a valid date in the format (mm/dd/yyyy)&#34;, can you please tell what are the specific files i have to download (jQuery UI datepicker widget) and where to put those files?&#60;/p&#62;
&#60;p&#62;Thanks :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-153039</link>
			<pubDate>Sat, 23 Feb 2013 09:53:46 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">153039@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That's a good way to do it: include the datepicker script with a normal text field rather than a Gravity Form date field.  Thank you for posting that solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>britweb on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-152267</link>
			<pubDate>Fri, 22 Feb 2013 08:58:55 +0000</pubDate>
			<dc:creator>britweb</dc:creator>
			<guid isPermaLink="false">152267@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the code fix, managed to finally get this working with your implementation. Thank you so much! :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dps on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-150846</link>
			<pubDate>Wed, 20 Feb 2013 08:50:46 +0000</pubDate>
			<dc:creator>dps</dc:creator>
			<guid isPermaLink="false">150846@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Update on the script above. To get around the user typing in their own date, try this updated code below. Also, I've allowed the user to clear the field by clicking delete or backspace:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/24r4i2Wx&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/24r4i2Wx&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dps on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-150833</link>
			<pubDate>Wed, 20 Feb 2013 08:18:52 +0000</pubDate>
			<dc:creator>dps</dc:creator>
			<guid isPermaLink="false">150833@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Guys, &#60;/p&#62;
&#60;p&#62;I had this exact same problem (was working on this yesterday). I tried the custom validation hook script, but couldn't get it to work. &#60;/p&#62;
&#60;p&#62;What I ended up doing was instead of using a datepicker field, just use a normal single text field and apply jQuery UI's datepicker code to it (this will get around the validation issue). You'll need to manually include jQuery UI datepicker widget (41kb in total) and I used this javascript below:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/6237759&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/6237759&#60;/a&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;var initDatePicker = function () {
    $( &#38;quot;#input_2_5&#38;quot; ).datepicker({
        minDate: 1,
        maxDate: &#38;quot;+1m&#38;quot;,
        dateFormat: &#38;quot;DD, d MM, yy&#38;quot;
    });
};

jQuery(document).bind(&#38;#39;gform_post_render&#38;#39;, function(){
    initDatePicker();
});

initDatePicker();&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You'll need to update the ID used above to your field's ID. The date won't be validated anymore (besides an empty validation) but you can get away with a custom formatted date. &#60;/p&#62;
&#60;p&#62;Here's the URL where I've used this:&#60;br /&#62;
&#60;a href=&#34;http://www.liveca.ca/#book-now&#34; rel=&#34;nofollow&#34;&#62;http://www.liveca.ca/#book-now&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm more of a designer than a developer so if anyone has suggestions or improvements please let me know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-150562</link>
			<pubDate>Wed, 20 Feb 2013 00:07:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">150562@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There is currently no way around this without extensive customization. The date format must be one of the ones available in the field editor or the validation will fail.  Even if validation is bypassed, the storage of the date will present problems when the entry is retrieved or the notifications are sent, because they all rely on the dates being in one of the defined formats.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-150259</link>
			<pubDate>Tue, 19 Feb 2013 12:38:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">150259@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll ask the development team if there is a work around for the custom date format.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>britweb on "Date Picker Validation in datefield"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-validation-in-datefield#post-149929</link>
			<pubDate>Tue, 19 Feb 2013 05:13:58 +0000</pubDate>
			<dc:creator>britweb</dc:creator>
			<guid isPermaLink="false">149929@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes when you fill in the form and press submit, the form comes back with the error message&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Please enter a valid date in the format (mm/dd/yyyy).&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;The link is &#60;a href=&#34;http://tts.britwebtest.co.uk/bangkok-tours/grand-palace-and-main-temples/&#34; rel=&#34;nofollow&#34;&#62;http://tts.britwebtest.co.uk/bangkok-tours/grand-palace-and-main-temples/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
