<?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 excluding todays date &#38;...</title>
		<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date</link>
		<description>Gravity Support Forums Topic: Date picker excluding todays date &amp;...</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 01:54: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/date-picker-excluding-todays-date" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-88430</link>
			<pubDate>Wed, 07 Nov 2012 12:45:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">88430@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@dcstover1, I deleted your bump replies.  Sorry for the delay in our response.&#60;/p&#62;
&#60;p&#62;I took a look at the page, and I see a different JavaScript error now:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Timestamp: 11/7/2012 10:35:35 AM
Error: SyntaxError: missing } in XML expression
Source File: &#60;a href=&#34;http://financedhomes.ca/wp-content/themes/parallelus-salutation/assets/js/date_restriction.js?ver=3.4.1&#34; rel=&#34;nofollow&#34;&#62;http://financedhomes.ca/wp-content/themes/parallelus-salutation/assets/js/date_restriction.js?ver=3.4.1&#60;/a&#62;
Line: 3, Column: 18
Source Code:
     beforeShowDay: function(date) {&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When including JavaScript in an external file as you have correctly done here, you do not need the beginning and ending script tags.  Edit date_restriction.js so that it contains just this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
jQuery(&#38;quot;#datepicker&#38;quot;).datepicker({
	    beforeShowDay: function(date) {
	        var day = date.getDay();
	        return [(day != 0 &#38;amp;&#38;amp; day != 1 &#38;amp;&#38;amp; day != 3 &#38;amp;&#38;amp; day != 5)];
	    }
	});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;After that, I think you will have accomplished part one (including the file properly.)  Then we need to make sure the function you wrote works as expected.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dcstover1 on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-86702</link>
			<pubDate>Fri, 02 Nov 2012 13:43:15 +0000</pubDate>
			<dc:creator>dcstover1</dc:creator>
			<guid isPermaLink="false">86702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hopefully i can get it to work!  Its a necessity.  Otherwise i get brain dead clients making appointments for friday nights or sunday mornings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ludwig on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-86699</link>
			<pubDate>Fri, 02 Nov 2012 13:28:48 +0000</pubDate>
			<dc:creator>ludwig</dc:creator>
			<guid isPermaLink="false">86699@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have followed this really interesting post (I think a lot of people need this), but it does not work for me too
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dcstover1 on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-86327</link>
			<pubDate>Thu, 01 Nov 2012 16:56:10 +0000</pubDate>
			<dc:creator>dcstover1</dc:creator>
			<guid isPermaLink="false">86327@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Still doesnt work.&#60;/p&#62;
&#60;p&#62;ive since fixed the missing &#34;/&#34;...tried &#34;/assets/js/date_restriction.js?ver=3.4.1&#34; and &#34;/assets/js/date_restriction.js&#34;&#60;/p&#62;
&#60;p&#62;still nothing
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-86134</link>
			<pubDate>Thu, 01 Nov 2012 08:19:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">86134@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There are two parts to this:&#60;/p&#62;
&#60;p&#62;1. be sure you include the file properly.  &#60;/p&#62;
&#60;p&#62;2. be sure the code in the file works as expected.&#60;/p&#62;
&#60;p&#62;Right now, I see this file included in the header:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;#39;text/javascript&#38;#39; src=&#38;#39;http://financedhomes.ca/wp-content/themes/parallelus-salutationassets/js/date_restriction.js?ver=3.4.1&#38;#39;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The means the code in functions.php is working to include a file, but you have the path to the file wrong.  You're missing a slash between the theme folder and the assets folder.  The file exists here: &#60;a href=&#34;http://financedhomes.ca/wp-content/themes/parallelus-salutation/assets/js/date_restriction.js?ver=3.4.1&#34; rel=&#34;nofollow&#34;&#62;http://financedhomes.ca/wp-content/themes/parallelus-salutation/assets/js/date_restriction.js?ver=3.4.1&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Correct that in your functions.php and we'll take another look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dcstover1 on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-85851</link>
			<pubDate>Wed, 31 Oct 2012 16:02:27 +0000</pubDate>
			<dc:creator>dcstover1</dc:creator>
			<guid isPermaLink="false">85851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have taken out the script from the GA Javascript...i tried inserting the script within the page and it made my form disappear.&#60;/p&#62;
&#60;p&#62;So as of right now, i have a file with the script in my theme's js folder, and the hook code running inside the functions.php file, but yet its still not working.  ugh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-85684</link>
			<pubDate>Wed, 31 Oct 2012 10:27:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">85684@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I get a JavaScript error on that page related to the datepicker:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Timestamp: 10/31/2012 9:22:35 AM
Error: TypeError: &#38;quot;#datepicker&#38;quot;.datepicker is not a function
Source File: &#60;a href=&#34;http://financedhomes.ca/rent-to-own-application/&#34; rel=&#34;nofollow&#34;&#62;http://financedhomes.ca/rent-to-own-application/&#60;/a&#62;
Line: 508&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is line 508:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[js]
(&#38;quot;#datepicker&#38;quot;).datepicker({&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I would try a couple things.  &#60;/p&#62;
&#60;p&#62;1) don't combine the datepicker JavaScript with the GA Javascript.  Google Analytics JavaScript is notoriously touchy and might not work with this modification anyway.&#60;/p&#62;
&#60;p&#62;2) your datepicker JavaScript needs to look more like this:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/syyyuEfF&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/syyyuEfF&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Did you just leave out the &#60;strong&#62;jQuery&#60;/strong&#62; part at the beginning?  Be sure to use script tags when embedding it in the page rather than including it in an external file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dcstover1 on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-85680</link>
			<pubDate>Wed, 31 Oct 2012 10:17:41 +0000</pubDate>
			<dc:creator>dcstover1</dc:creator>
			<guid isPermaLink="false">85680@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;here is the form which i am trying to manipulate the date picker on... thank you! i appreciate the help!&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://financedhomes.ca/rent-to-own-application/&#34; rel=&#34;nofollow&#34;&#62;http://financedhomes.ca/rent-to-own-application/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-85576</link>
			<pubDate>Wed, 31 Oct 2012 07:55:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">85576@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please share the link where you implemented this functionality.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dcstover1 on "Date picker excluding todays date &#38;..."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/date-picker-excluding-todays-date#post-85519</link>
			<pubDate>Wed, 31 Oct 2012 05:20:03 +0000</pubDate>
			<dc:creator>dcstover1</dc:creator>
			<guid isPermaLink="false">85519@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, everything is loaded properly.  Added the code to the functions.php file of my theme, the js/ folder was found under my theme's assets file, so i tried using the code you provided, then i tried it with using 'assets/js/date_restriction.js'.  &#60;/p&#62;
&#60;p&#62;Still nothing works...i even tried simply adding the date restriction code to my themes &#34;custom javascript&#34; section.  Of course this would affect all my forms, but it still didn't work.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
