<?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 Shortcodes Bug and Documentation Clarification</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-shortcodes-bug-and-documentation-clarification</link>
		<description>Gravity Support Forums Topic: Conditional Shortcodes Bug and Documentation Clarification</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 16:20:42 +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-shortcodes-bug-and-documentation-clarification" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Conditional Shortcodes Bug and Documentation Clarification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-shortcodes-bug-and-documentation-clarification#post-108354</link>
			<pubDate>Wed, 26 Dec 2012 12:10:24 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">108354@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@dNb&#60;br /&#62;
Thanks for the very detailed explanation. I agree with you on the first issue. The usage of &#34;value&#34; does seem a little misleading in that scenario and we will be looking at adding some sort of message to the documentation to make that a bit more clear.&#60;/p&#62;
&#60;p&#62;As far as the bug, I will try to track it down and get back to you when I have it fixed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Conditional Shortcodes Bug and Documentation Clarification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-shortcodes-bug-and-documentation-clarification#post-106457</link>
			<pubDate>Sun, 23 Dec 2012 12:02:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">106457@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll bring your topic to the attention of the development team.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dnb on "Conditional Shortcodes Bug and Documentation Clarification"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-shortcodes-bug-and-documentation-clarification#post-106263</link>
			<pubDate>Sun, 23 Dec 2012 01:38:42 +0000</pubDate>
			<dc:creator>dnb</dc:creator>
			<guid isPermaLink="false">106263@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi-&#60;br /&#62;
  I just spent a couple of hours fighting with conditional shortcodes in version 1.6.11 and in the process I think I've located both a real bug and an omission in the documentation. Let me mention my struggle with the documentation first because the other bug can be worked around.&#60;/p&#62;
&#60;p&#62;The documentation shows this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
[gravityforms action=&#34;conditional&#34; merge_tag=&#34;{Country:5}&#34; condition=&#34;is&#34; value=&#34;United States&#34;]&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;The place that I think it is very easy to get tripped us is the doc on first glance might lead you to believe that when you write merge_tag to reference a form field, the &#34;value&#34; attribute could be specifying the value of the field included by the merge tag, &#60;u&#62;not&#60;/u&#62; the value that would be inserted by the merge tag. Now I know this is not the case.&#60;/p&#62;
&#60;p&#62;It's entirely possible this was just my own bias that caused me to think that something called 'value' in a shortcode would be same as what gets called a &#34;value&#34; in the form designer (&#34;show values&#34;).  If the docs for the conditional shortcode could make it clear that the comparison gets done against the field label by default or field value if you add a :value to the merge_tag (perhaps with an example showing field:ID:value), that would have made a world of difference to me and perhaps others.&#60;/p&#62;
&#60;p&#62;So let's say you had a radio button form element like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Form Element 6 &#38;quot;Where is Carl&#38;quot;
&#38;quot;He is in Mexico again&#124;MEXICO&#38;quot;
&#38;quot;He is in a coffee shop&#124;COFFEE&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This means the conditional code has to say either:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[gravityforms action=&#38;quot;conditional&#38;quot; merge_tag=&#38;quot;{Where is Carl:6}&#38;quot; condition=&#38;quot;is&#38;quot; value=&#38;quot;He is in Mexico again&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;or&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[gravityforms action=&#38;quot;conditional&#38;quot; merge_tag=&#38;quot;{Where is Carl:6:value}&#38;quot; condition=&#38;quot;is&#38;quot; value=&#38;quot;MEXICO&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Ok, now the real bug:&#60;/p&#62;
&#60;p&#62;If you use a radio button element and have a field label that includes an apostrophe, the conditional shortcode logic breaks in a very interesting way. Even if you insert that apostrophe not as a single quote, but as the HTML entity &#60;code&#62;&#38;#8217;&#60;/code&#62; it still breaks. I found that it never properly does a comparison. So in the example above, if the form element was:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Form Element 6 &#38;quot;Where is Carl&#38;quot;
&#38;quot;He is in Mexico again&#124;MEXICO&#38;quot;
&#38;quot;He is cryin&#38;#39; in his coffee&#124;COFFEE&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(in my case the actual Field label was [Second Line Social Aid and Pleasure Society Brass Band: &#34;I Feel Like Funkin’ It Up&#34;])&#60;/p&#62;
&#60;p&#62;you will find that any comparison, even for a different value in the same element, like this from above:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;[gravityforms action=&#38;quot;conditional&#38;quot; merge_tag=&#38;quot;{Where is Carl:6:value}&#38;quot; condition=&#38;quot;is&#38;quot; value=&#38;quot;MEXICO&#38;quot;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;will not succeed. My theory is the code that parses merge tags throws up its hands if it finds an extra quote, but that's only a guess. I haven't had a chance to dig through the code to confirm this. &#60;/p&#62;
&#60;p&#62;Anyway, thanks for all of the hard work putting in the conditional shortcode functionality. Now that my head is screwed on right about it, it rocks.&#60;/p&#62;
&#60;p&#62;   -- dNb
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
