<?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: Limit the past on date field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field</link>
		<description>Gravity Support Forums Topic: Limit the past on date field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 21:46:00 +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/limit-the-past-on-date-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-73569</link>
			<pubDate>Sun, 02 Sep 2012 00:46:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">73569@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@goldenimage, please begin a new topic for your issue as it is unrelated to the topic here.  You're going to need to calculate tomorrow's date and store that.  This will probably be code added to your theme's functions.php.&#60;/p&#62;
&#60;p&#62;If the December 2014 date is always the same you can just save that in an admin-only field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>goldenimage on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-73507</link>
			<pubDate>Fri, 31 Aug 2012 22:38:12 +0000</pubDate>
			<dc:creator>goldenimage</dc:creator>
			<guid isPermaLink="false">73507@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://jqueryui.com/demos/datepicker/#min-max&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/#min-max&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There is a small snippet of JavaScript to add to the pages where the form with the datepicker exists. Let us know if you need help implementing this the correct way to prevent future problems. Thank you.&#60;/p&#62;
&#60;p&#62;(Raises Hand)  I need help here!&#60;/p&#62;
&#60;p&#62;I need dates set to the day after the user selects and end in December 2014&#60;/p&#62;
&#60;p&#62;I read the page you've linked.  Please let me know what code to add and where to add it.&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manonmichel on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-70226</link>
			<pubDate>Wed, 08 Aug 2012 16:50:02 +0000</pubDate>
			<dc:creator>manonmichel</dc:creator>
			<guid isPermaLink="false">70226@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;SOLVED!  Used the following code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
    jQuery(function ($) {
        $(&#38;quot;#input_1_4&#38;quot;).datepicker({
            changeMonth: true,
            changeYear: true,
            dateFormat: &#38;#39;M/dd/yy&#38;#39;,
            yearRange: &#38;#39;-100:-14&#38;#39;,
            defaultDate:&#38;#39;-14y&#38;#39;
        });
    });
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks anyway!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manonmichel on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-70210</link>
			<pubDate>Wed, 08 Aug 2012 15:44:12 +0000</pubDate>
			<dc:creator>manonmichel</dc:creator>
			<guid isPermaLink="false">70210@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I used the following code to limit the dates to between 65 and 14 years in the past:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script&#38;gt;
    jQuery(function ($) {
        $( &#38;quot;#input_1_4&#38;quot; ).datepicker({ minDate: &#38;quot;-65Y&#38;quot;, maxDate: &#38;quot;-14Y&#38;quot; });
    });
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But then the year dropdown doesn't show at all. And it seems the UI on the gravityform is a bit messed up.  Any idea what I'm doing wrong?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-68938</link>
			<pubDate>Wed, 01 Aug 2012 08:55:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68938@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should never modify any of the plugin files. You will lose those changes when the plugin is updated.  Here is documentation on how to add those same limits without changing any plugin files.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://jqueryui.com/demos/datepicker/#min-max&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/#min-max&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;There is a small snippet of JavaScript to add to the pages where the form with the datepicker exists.  Let us know if you need help implementing this the correct way to prevent future problems.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smaato on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-68937</link>
			<pubDate>Wed, 01 Aug 2012 08:51:59 +0000</pubDate>
			<dc:creator>smaato</dc:creator>
			<guid isPermaLink="false">68937@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found out how to handle this. Just in case someone is facing the same issue just go to your gravity forms plugin folder &#38;gt; js &#38;gt; jquery-ui &#38;gt; ui.datepicker.js and change the minDate and maxDate.&#60;/p&#62;
&#60;p&#62;eg:&#60;br /&#62;
minDate: 0, // this will set to the current date&#60;br /&#62;
maxDate: +90, // this will let users choose up to 90 days from the current date&#60;/p&#62;
&#60;p&#62;cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>smaato on "Limit the past on date field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/limit-the-past-on-date-field#post-68935</link>
			<pubDate>Wed, 01 Aug 2012 08:38:03 +0000</pubDate>
			<dc:creator>smaato</dc:creator>
			<guid isPermaLink="false">68935@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Is it possible to have users select a future date only? I have a schedule a consultation date field and a couple users already added past dates, what doesn't make any good sense, but I need to make sure that doesn't happen.&#60;/p&#62;
&#60;p&#62;Is also possible to limit the future years? I would like to show from current date up to 2 years maximum (currently my date field allows a 1912-2032 selection range).&#60;/p&#62;
&#60;p&#62;Thx in advance
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
