<?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: Disable certain days on date picker</title>
		<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker</link>
		<description>Gravity Support Forums Topic: Disable certain days on date picker</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 05:00:20 +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/disable-certain-days-on-date-picker" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-30394</link>
			<pubDate>Tue, 19 Jul 2011 10:23:02 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">30394@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nice, thanks for posting the solution for other users!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deltahorse on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-30372</link>
			<pubDate>Mon, 18 Jul 2011 23:29:30 +0000</pubDate>
			<dc:creator>Deltahorse</dc:creator>
			<guid isPermaLink="false">30372@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I went ahead and solved the issue and thought I'd post the code here in case anyone else needed it (I also included the php code which isolates the javascript to just the page I need):&#60;/p&#62;
&#60;p&#62;&#38;lt;?php if (is_page('reservations') ) { ?&#38;gt;&#60;br /&#62;
&#38;lt;!--reservations page custom JS--&#38;gt;&#60;br /&#62;
    &#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
jQuery.noConflict();&#60;br /&#62;
jQuery(document).ready(function($) {&#60;br /&#62;
$( &#34;#input_1_5&#34; ).datepicker({&#60;br /&#62;
defaultDate: '+1d',&#60;br /&#62;
minDate: '+1d',&#60;br /&#62;
gotoCurrent: true,&#60;br /&#62;
prevText: '',&#60;br /&#62;
showOn: 'both',&#60;br /&#62;
buttonImage: '/wp_test/wp-content/plugins/gravityforms/images/calendar.png',&#60;br /&#62;
buttonImageOnly: true,&#60;br /&#62;
dateFormat: 'D dd/mm/yy',&#60;br /&#62;
beforeShow: customRange&#60;br /&#62;
});&#60;br /&#62;
$( &#34;#input_1_7&#34; ).datepicker({&#60;br /&#62;
prevText: '',&#60;br /&#62;
showOn: 'both',&#60;br /&#62;
buttonImage: '/wp_test/wp-content/plugins/gravityforms/images/calendar.png',&#60;br /&#62;
buttonImageOnly: true,&#60;br /&#62;
dateFormat: 'D dd/mm/yy',&#60;br /&#62;
beforeShow: customRange&#60;br /&#62;
});&#60;br /&#62;
});&#60;br /&#62;
function customRange(input) {&#60;br /&#62;
  if (input.id == 'input_1_7') {&#60;br /&#62;
    return {&#60;br /&#62;
      minDate: jQuery('#input_1_5').datepicker(&#34;getDate&#34;)&#60;br /&#62;
    };&#60;br /&#62;
  } else if (input.id == 'input_1_5') {&#60;br /&#62;
    return {&#60;br /&#62;
      maxDate: jQuery('#input_1_7').datepicker(&#34;getDate&#34;)&#60;br /&#62;
    };&#60;br /&#62;
  }&#60;br /&#62;
}&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;br /&#62;
&#38;lt;?php } ?&#38;gt;&#60;/p&#62;
&#60;p&#62;There's probably a more elegant way to go about this, but it seems to work just fine. I hope someone finds this useful. I got the code snippet from the following link: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://jsbin.com/evudo/26/edit&#34; rel=&#34;nofollow&#34;&#62;http://jsbin.com/evudo/26/edit&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deltahorse on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-30320</link>
			<pubDate>Mon, 18 Jul 2011 15:21:11 +0000</pubDate>
			<dc:creator>Deltahorse</dc:creator>
			<guid isPermaLink="false">30320@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for your reply Carl, I figured I'd have to do a bit of custom jQuery and like you I wasn't able to find any example code online that does this. I'll keep looking, but I appreciate your response, and if there are any other members that could possibly point me in the right direction I'd appreciate that a great deal. Cheers.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-30316</link>
			<pubDate>Mon, 18 Jul 2011 15:15:36 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">30316@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This isn't currently a built in feature, although we do plan on enhancing the Date field in the future to incorporate a Range feature that will show 2 fields instead of 1.  But the only way to do what you described would be through the use of custom jQuery to validate what was entered and make sure the 2nd date was after the 1st.  I'm not aware of any code snippets that could be provided to help with this as I haven't seen it done before.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deltahorse on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-30178</link>
			<pubDate>Sat, 16 Jul 2011 12:30:08 +0000</pubDate>
			<dc:creator>Deltahorse</dc:creator>
			<guid isPermaLink="false">30178@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I hate to be a thread bumper, but rather than starting a new one (because this answers part of my question), I'd like to know how I could disable a day (and all days prior) that was selected in the first of 2 Datepickers in the latter one. Here's the form I've got so far to illustrate: &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.autoseason.com/wp_test/reservations&#34; rel=&#34;nofollow&#34;&#62;http://www.autoseason.com/wp_test/reservations&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers, this is my first post and I just want to mention that GravityForms is the best plugin of its kind I've found, well done guys.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-10880</link>
			<pubDate>Thu, 07 Oct 2010 07:36:06 +0000</pubDate>
			<dc:creator>Alex</dc:creator>
			<guid isPermaLink="false">10880@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;SOLVED!&#60;/p&#62;
&#60;p&#62;here's the code just in case anyone wants to use it. The following selects the current day, disables any day before today and disables Sunday as an option. The date format is, for example, Thu 07/10/10 for today:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
jQuery.noConflict();&#60;br /&#62;
  jQuery(document).ready(function($) {&#60;br /&#62;
		$( &#34;#input_1_26&#34; ).datepicker({ defaultDate: '0d', minDate: '0d', gotoCurrent: true, prevText: '', showOn: 'both', buttonImage: '/info/wp-content/plugins/gravityforms/images/calendar.png', buttonImageOnly: true, dateFormat: 'D dd/mm/yy', beforeShowDay: function(date){if (date.getDay() == 0){return [false,''];} else {return [true, ''];}}});&#60;br /&#62;
  });&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-10842</link>
			<pubDate>Wed, 06 Oct 2010 08:02:16 +0000</pubDate>
			<dc:creator>Alex</dc:creator>
			<guid isPermaLink="false">10842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;ok. i've sorted some of it out, to an extent. i input the code again to load before the datepicker and not after it (it worked beforehand):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
jQuery.noConflict();
  jQuery(document).ready(function($) {&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;		$( &#38;quot;#input_1_26&#38;quot; ).datepicker({ defaultDate: &#38;#39;0d&#38;#39;, minDate: &#38;#39;0d&#38;#39;, gotoCurrent: true, prevText: &#38;#39;&#38;#39;, showOn: &#38;#39;both&#38;#39;, buttonImage: &#38;#39;/info/wp-content/plugins/gravityforms/images/calendar.png&#38;#39;, buttonImageOnly: true });
  });
);
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, the dd/mm/yy somehow changes to mm/dd/yy and changes back when it is taken out.&#60;/p&#62;
&#60;p&#62;I'm also having difficulty implementing the noSundays script:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$(&#38;#39;#noSundays&#38;#39;).datepicker(
{
beforeShowDay: function(date){
 if (date.getDay() == 0){
return [false,&#38;#39;&#38;#39;];
} else {
 return [true, &#38;#39;&#38;#39;];
}
}
 }
);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have changed #noSundays to #input_1_26 too and nothing
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-10607</link>
			<pubDate>Thu, 30 Sep 2010 10:36:10 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">10607@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure what you mean that the &#34;previous&#34; date script isn't working. Everything is overwritten during the upgrade and the datepicker UI component hasn't been updated or changed in the recent version. You may have some kind of script conflict with another plugin or may need to manually remove the files from the plugin folder and reinstall via ftp.&#60;/p&#62;
&#60;p&#62;As mentioned above, the datepicker is the standard version from the jQuery UI library. You'll just have to continue to search for the documentation on how to exclude just Sundays.&#60;/p&#62;
&#60;p&#62;EDIT: I did find this in a quick search.. I can't confirm that it works but you may want to check it out. &#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.devcomments.com/DatePicker-restrict-certain-days-at57218.htm&#34; rel=&#34;nofollow&#34;&#62;http://www.devcomments.com/DatePicker-restrict-certain-days-at57218.htm&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-10605</link>
			<pubDate>Thu, 30 Sep 2010 09:00:36 +0000</pubDate>
			<dc:creator>Alex</dc:creator>
			<guid isPermaLink="false">10605@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have found that since upgrading gravityforms the previous date JS is no longer working. what is the solution here?&#60;/p&#62;
&#60;p&#62;I also never found out how to disable Sunday only!!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Disable certain days on date picker"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/disable-certain-days-on-date-picker#post-7541</link>
			<pubDate>Mon, 19 Jul 2010 10:38:10 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">7541@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I wouldn't know without researching more myself. A quick google search turned up a few sites that might be helpful.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://davidwalsh.name/jquery-datepicker-disable-days&#34; rel=&#34;nofollow&#34;&#62;http://davidwalsh.name/jquery-datepicker-disable-days&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://jqueryui.com/demos/datepicker/&#34; rel=&#34;nofollow&#34;&#62;http://jqueryui.com/demos/datepicker/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/disable-specific-days-in-a-jquery-ui-datepicker-268&#34; rel=&#34;nofollow&#34;&#62;http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/disable-specific-days-in-a-jquery-ui-datepicker-268&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
