<?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: Using conditional logic means form no show...?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show</link>
		<description>Gravity Support Forums Topic: Using conditional logic means form no show...?</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 15:45:44 +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/using-conditional-logic-means-form-no-show" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-28700</link>
			<pubDate>Tue, 28 Jun 2011 12:06:37 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28700@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The shortcodes should work with W3 Total Cache.  You have to configure W3 Total Cache so it ignores any Gravity Forms related queries in it's database settings by ignoring the query stem rg_* or yourprefix_rg_*.  But as far as I am aware it should work.  What specific issue are you running into?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Melvin Neo on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-28697</link>
			<pubDate>Tue, 28 Jun 2011 11:50:37 +0000</pubDate>
			<dc:creator>Melvin Neo</dc:creator>
			<guid isPermaLink="false">28697@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Carl,&#60;/p&#62;
&#60;p&#62;Because the shortcodes didn't work for me due to the W3 Total Cache plugin. So I was thinking of alternatives. We've just 'spoken' via email actually. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-28693</link>
			<pubDate>Tue, 28 Jun 2011 11:42:30 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28693@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@cmeihoong You can place them all in your themes functions.php file and wrap each one in an if statement that checks the page so it only executes if you are on one of those pages.&#60;/p&#62;
&#60;p&#62;For example this code would only execute if it's page id 5:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
if (is_page(5)) {
    gravity_form_enqueue_scripts(1, true);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But the real question is if you have 3 pages and each page there is a form why are you manually using the function call rather than simply using the Gravity Forms shortcode on each page you want to display a form? This custom code is only necessary when manually displaying a form using a PHP function call.  &#60;/p&#62;
&#60;p&#62;Typically you should primarily be using the shortcode or Widget to display a form.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Melvin Neo on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-28673</link>
			<pubDate>Tue, 28 Jun 2011 06:35:00 +0000</pubDate>
			<dc:creator>Melvin Neo</dc:creator>
			<guid isPermaLink="false">28673@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I know this post is more than a month old. But I have a question though. I know the number &#34;2&#34; is the ID of the form. What if I have 3 pages and in each page there's a form, and all these forms have different IDs, like 2, 3 or 4? In this case, how and where do I put them?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bklahrke on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25134</link>
			<pubDate>Mon, 09 May 2011 17:20:49 +0000</pubDate>
			<dc:creator>bklahrke</dc:creator>
			<guid isPermaLink="false">25134@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you Carl!&#60;/p&#62;
&#60;p&#62;I can see it now :)&#60;/p&#62;
&#60;p&#62;Thank you sooooooo much! &#60;/p&#62;
&#60;p&#62;Bklahrke
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25132</link>
			<pubDate>Mon, 09 May 2011 17:14:57 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">25132@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, I may have misunderstood the situation earlier. Apologies for any confusion. I'll bow out and let Carl take it from here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25131</link>
			<pubDate>Mon, 09 May 2011 17:12:44 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">25131@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok I changed your page.php so the function call to the form looked like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;gravity_form(2, true, true, false, &#38;#39;&#38;#39;, false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What you had copy-n-pasted wasn't the example function call, it was the function definition which had the full parameters listed.&#60;/p&#62;
&#60;p&#62;I then added this to your themes functions.php file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;gravity_form_enqueue_scripts(2, false);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This enqueues the necessary scripts and CSS.  Since you aren't calling the form the traditional way (via the shortcode in a page or post or via a widget in a sidebar) you need to manually enqueue these scripts when displaying the form via the PHP function call.&#60;/p&#62;
&#60;p&#62;Your form is now working and displaying.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bklahrke on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25130</link>
			<pubDate>Mon, 09 May 2011 17:04:36 +0000</pubDate>
			<dc:creator>bklahrke</dc:creator>
			<guid isPermaLink="false">25130@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;I have just posted an email. Just going to send another w/ my FTP details.&#60;/p&#62;
&#60;p&#62;Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25127</link>
			<pubDate>Mon, 09 May 2011 16:53:37 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">25127@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That is different then.  If you are displaying a post there then the problem is going to be related to how you are doing this (which is backwards).  It's hard to tell what the issue is because I can't see your template code.&#60;/p&#62;
&#60;p&#62;If you send me a WordPress admin login for this site along with an FTP login via our Contact Us form and let me know which theme template file this custom code is in I can take a look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bklahrke on "Using conditional logic means form no show...?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-conditional-logic-means-form-no-show#post-25126</link>
			<pubDate>Mon, 09 May 2011 16:49:13 +0000</pubDate>
			<dc:creator>bklahrke</dc:creator>
			<guid isPermaLink="false">25126@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;Can you try it again, please... I just fixed that error...&#60;/p&#62;
&#60;p&#62;I am calling the sidebar a sidebar, but in fact it is not... It's an area displaying a post (real backwards way of doing this I know)... &#60;/p&#62;
&#60;p&#62;Thank you :)&#60;/p&#62;
&#60;p&#62;Bklahrke
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
