<?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: Conditional Logic for Appointment Scheduling</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-for-appointment-scheduling</link>
		<description>Gravity Support Forums Topic: Conditional Logic for Appointment Scheduling</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:09:10 +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/conditional-logic-for-appointment-scheduling" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Conditional Logic for Appointment Scheduling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-for-appointment-scheduling#post-23728</link>
			<pubDate>Tue, 19 Apr 2011 23:17:26 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23728@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should be able to target and use jQuery to manipulate the drop down just like you would normally do.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kyle on "Conditional Logic for Appointment Scheduling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-for-appointment-scheduling#post-23722</link>
			<pubDate>Tue, 19 Apr 2011 22:37:44 +0000</pubDate>
			<dc:creator>kyle</dc:creator>
			<guid isPermaLink="false">23722@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay, thanks.  So do I need to do anything special with gravity forms in order to set the jQuery to update the contents of the Hour dropdown, or can I just do things as I would regularly?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional Logic for Appointment Scheduling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-for-appointment-scheduling#post-23717</link>
			<pubDate>Tue, 19 Apr 2011 19:21:43 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">23717@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not sure that Gravity Form's conditional logic will be granular enough to easily support the specificity of the conditions you have. Not that it isn't possible, but this is a situation where you'd probably be better off doing the conditional logic as a javascript customization.&#60;/p&#62;
&#60;p&#62;In addition to customizing the javascript for the conditional logic make sure to make sure of Gravity Form's &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_validation&#34; rel=&#34;nofollow&#34;&#62;gform_validation&#60;/a&#62; hook to verify that the dates selected are valid on the server side.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kyle on "Conditional Logic for Appointment Scheduling"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-for-appointment-scheduling#post-23709</link>
			<pubDate>Tue, 19 Apr 2011 17:05:19 +0000</pubDate>
			<dc:creator>kyle</dc:creator>
			<guid isPermaLink="false">23709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm setting up an appointment request form for an auto dealership.  It works fine but I need some additional functionality.  I've read this, which has some similar elements:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/email-based-on-day&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/email-based-on-day&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Right now, the user picks the day they'd like for their appointment (using the date field), and then the time they wish to have their appointment (currently this is an hour field but I think I'll switch to a dropdown for the problem I have).  The problem is that they are not limited to their time selection based on the hours of the service department.  Here is what I need:&#60;/p&#62;
&#60;p&#62;1. When the user chooses a date from the date picker, (I'll need to block certain dates (holidays and Sundays from appearing here - with jQuery or PHP I suppose, see item 2) I'd like to have some conditional logic that adjusts the hours in the dropdown field based on the day of the week (Monday, Tues, Thursday and Saturday are open 8am 6pm - Friday and Wednesday they're open from 10am to 9pm).  The dropdown would be populated with 15 minuted increments between those hours (8:00, 8:15, 8:30, 8:45, 9:00... 5:30, 5:45, 6:00).&#60;/p&#62;
&#60;p&#62;What's the best way of doing this?  I know about the conditional logic in Gravity Forms, but it doesn't seem that you can create conditional logic based on a date.  Should I be doing this with a php hook, or using Javascript?  On their old, non Gravity Forms field I used javascript.&#60;/p&#62;
&#60;p&#62;2. Also, is it possible to block dates in the datepicker on the PHP end, or can I only do this with jQuery?  I'd like to set it up so only a certain number of appointments can be booked for each date.  Ideally this would query the submitted form entries for the information.&#60;/p&#62;
&#60;p&#62;Side note - it'd be great to be able to use more criteria for the conditional logic (and notification routing).
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
