<?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: How to modify datepicker settings?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings</link>
		<description>Gravity Support Forums Topic: How to modify datepicker settings?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:42:23 +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/how-to-modify-datepicker-settings" rel="self" type="application/rss+xml" />

		<item>
			<title>bozzmedia on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-67111</link>
			<pubDate>Thu, 19 Jul 2012 16:12:35 +0000</pubDate>
			<dc:creator>bozzmedia</dc:creator>
			<guid isPermaLink="false">67111@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you, David!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-67107</link>
			<pubDate>Thu, 19 Jul 2012 15:58:07 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">67107@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a great article we have on where code goes:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also, make sure your date picker has a ff-date class.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bozzmedia on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-67104</link>
			<pubDate>Thu, 19 Jul 2012 15:55:51 +0000</pubDate>
			<dc:creator>bozzmedia</dc:creator>
			<guid isPermaLink="false">67104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for sharing +1.  I'm trying to implement this but having trouble figuring out where to place it.  I've put the following in my header.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
// Only allow future dates via the calendar for date fields found on forms.
  if ($(&#38;#39;.ff-date input&#38;#39;).length) {
  	$(&#38;#39;.ff-date input&#38;#39;).datepicker(&#38;quot;option&#38;quot;, &#38;quot;minDate&#38;quot;, &#38;quot;+0&#38;quot;).datepicker(&#38;quot;refresh&#38;quot;);

  }
  &#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Should I do this in functions.php instead?  Would really appreciate some direction on this, thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-53237</link>
			<pubDate>Thu, 22 Mar 2012 20:32:46 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">53237@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for posting your solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-53197</link>
			<pubDate>Thu, 22 Mar 2012 13:17:08 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">53197@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I finally came up with a solution that uses the UI datepicker methods to update the setting and then refresh the object. I don't think I could reference the datepicker class because it was being added on the fly as well. This will work nicely across multiple forms.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Only allow future dates via the calendar for date fields found on forms.
  if ($(&#38;#39;.ff-date input&#38;#39;).length) {
  	$(&#38;#39;.ff-date input&#38;#39;).datepicker(&#38;quot;option&#38;quot;, &#38;quot;minDate&#38;quot;, &#38;quot;+0&#38;quot;).datepicker(&#38;quot;refresh&#38;quot;);

  }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>uvalib on "How to modify datepicker settings?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-modify-datepicker-settings#post-53091</link>
			<pubDate>Wed, 21 Mar 2012 17:11:53 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">53091@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was using an ID selector to modify each of my date fields on a form in my JavaScript:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($(&#38;#39;#input_6_16&#38;#39;).length) {
    $(&#38;#39;#input_6_16&#38;#39;).datepicker({minDate: &#38;#39;+0&#38;#39;, gotoCurrent: true, prevText: &#38;#39;&#38;#39;, showOn: &#38;#39;both&#38;#39;, buttonImage: &#38;#39;/wordpress/wp-content/plugins/gravityforms/images/calendar.png&#38;#39;, buttonImageOnly: true});
  }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And I was including the image because I had read in another thread that overriding the picker required including the image again. And this way works great!&#60;/p&#62;
&#60;p&#62;But this is getting somewhat tedious to have to do for each form and field (6+ forms some with 2+ date fields). I was hoping I could use a class selector instead to modify the UI datepicker for each date on a form:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($(&#38;#39;.ff-date input.datepicker&#38;#39;).length) {
    $(&#38;#39;.ff-date input.datepicker&#38;#39;).datepicker({minDate: &#38;#39;+0&#38;#39;, gotoCurrent: true, prevText: &#38;#39;&#38;#39;, showOn: &#38;#39;both&#38;#39;, buttonImage: &#38;#39;/wordpress/wp-content/plugins/gravityforms/images/calendar.png&#38;#39;, buttonImageOnly: true});
  }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Then for each date field on a form I add ff-date in the CSS class advanced setting. But this doesn't seem to work at all.&#60;/p&#62;
&#60;p&#62;Is it not possible to modify a datepicker using class selectors? Do you have to use ID selectors?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
