<?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: [if] statement in content template</title>
		<link>https://legacy.forums.gravityhelp.com/topic/if-statement-in-content-template</link>
		<description>Gravity Support Forums Topic: [if] statement in content template</description>
		<language>en-US</language>
		<pubDate>Sat, 11 Apr 2026 19:09:51 +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/if-statement-in-content-template" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "[if] statement in content template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/if-statement-in-content-template#post-44483</link>
			<pubDate>Tue, 20 Dec 2011 01:34:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">44483@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Conditional content templates are not a feature of Gravity Forms.  However, you can do this by using the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_after_submission&#34; rel=&#34;nofollow&#34;&#62;gform_after_submission&#60;/a&#62; hook and modifying the $post.  It can't be done from the form builder.  It's done with some code in your theme's functions.php.  &#60;/p&#62;
&#60;p&#62;Here is an example of how I have done it in the past:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/um5RWzGH&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/um5RWzGH&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please ask questions about the code.  Thanks
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jackie on "[if] statement in content template"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/if-statement-in-content-template#post-44482</link>
			<pubDate>Tue, 20 Dec 2011 01:19:12 +0000</pubDate>
			<dc:creator>Jackie</dc:creator>
			<guid isPermaLink="false">44482@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there way a way to have an &#34;if&#34; statement in the content template.&#60;br /&#62;
For example i have an optional text field and want to display text only if its been filed in.&#60;br /&#62;
Something like:&#60;/p&#62;
&#60;p&#62;[if {Text:1}]&#38;lt;p&#38;gt;some html here {another var:4} &#38;lt;span&#38;gt;{Text:1}]&#38;lt;/span&#38;gt;&#38;lt;/p&#38;gt; [/endif]
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
