<?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: Make a form embed conditional</title>
		<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional</link>
		<description>Gravity Support Forums Topic: Make a form embed conditional</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:32:15 +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/make-a-form-embed-conditional" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50983</link>
			<pubDate>Wed, 29 Feb 2012 23:03:24 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">50983@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right on! Glad to help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rs468 on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50977</link>
			<pubDate>Wed, 29 Feb 2012 22:00:21 +0000</pubDate>
			<dc:creator>rs468</dc:creator>
			<guid isPermaLink="false">50977@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Aaah. Nice! worked perfectly. thanks again Rob
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50890</link>
			<pubDate>Tue, 28 Feb 2012 23:20:46 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">50890@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You probably need to enqueue the scripts and/or styles, check this out:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rs468 on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50888</link>
			<pubDate>Tue, 28 Feb 2012 23:14:06 +0000</pubDate>
			<dc:creator>rs468</dc:creator>
			<guid isPermaLink="false">50888@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Rob,&#60;/p&#62;
&#60;p&#62;Added a line for EST:&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
date_default_timezone_set(timezone_name_from_abbr(&#34;EST&#34;));&#60;br /&#62;
$today = date(&#34;l&#34;);&#60;br /&#62;
if ($today == &#34;Tuesday&#34; &#124;&#124; $today == &#34;Wednesday&#34;){&#60;br /&#62;
echo $today;&#60;br /&#62;
	 echo do_shortcode(&#34;[gravityform id=6 title=false description=false ajax=false]&#34;);&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
Unfortunately, this won't pull up the id=6 form... I think it may have something to with having conditional logic.  This code works  for all my other forms that don't contain conditional fields&#60;br /&#62;
here's the page:&#60;br /&#62;
&#60;a href=&#34;http://50.116.66.243/~ab27853/test-page2/&#34; rel=&#34;nofollow&#34;&#62;http://50.116.66.243/~ab27853/test-page2/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Any thoughts?&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rs468 on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50529</link>
			<pubDate>Sat, 25 Feb 2012 17:23:47 +0000</pubDate>
			<dc:creator>rs468</dc:creator>
			<guid isPermaLink="false">50529@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Rob!  I'll one of those solutions...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50511</link>
			<pubDate>Sat, 25 Feb 2012 13:33:42 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">50511@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could create a new page template to use for displaying your form that has this bit of php in it, then assign that to the Page in your admin:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
//Give what day of the week it is. Returns Sunday through Saturday.
	$day = date(&#38;quot;l&#38;quot;);

	switch ($day) {
	case Monday: case Tuesday: case Wednesday: case Thursday: case Friday:
		echo do_shortcode(&#38;quot;[gravityform id=1 title=false description=false ajax=false]&#38;quot;);
	break;
	}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can set your form ID appropriately here and all of the other parameters as you see fit. You could also include a separate case for Saturday and/or Sunday to display some kind of message like so:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
//Give what day of the week it is. Returns Sunday through Saturday.
	$day = date(&#38;quot;l&#38;quot;);

	switch ($day) {
	case Monday: case Tuesday: case Wednesday: case Thursday: case Friday:
		echo do_shortcode(&#38;quot;[gravityform id=1 title=false description=false ajax=false]&#38;quot;);
	break;
	case Saturday: case Sunday:
		echo &#38;quot;It&#38;#39;s the weekend, no form today!&#38;quot;;
	break;
	}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>rs468 on "Make a form embed conditional"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/make-a-form-embed-conditional#post-50508</link>
			<pubDate>Sat, 25 Feb 2012 12:43:25 +0000</pubDate>
			<dc:creator>rs468</dc:creator>
			<guid isPermaLink="false">50508@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've embedded a gravity form in one of my WP pages. What I'd like to do is create a condition where I only embed/display the form Monday - Friday...&#60;/p&#62;
&#60;p&#62;Any thoughts?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
