<?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 Breaks if Value is set to 0</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0</link>
		<description>Gravity Support Forums Topic: Conditional Logic Breaks if Value is set to 0</description>
		<language>en-US</language>
		<pubDate>Fri, 03 Apr 2026 19:43:08 +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-breaks-if-value-is-set-to-0" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23726</link>
			<pubDate>Tue, 19 Apr 2011 23:13:50 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23726@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The version that corrects this is available to anyone on the Downloads page.  It will be released via automatic upgrade sometime next week most likely after we include other incremental updates in the final release.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BandonRandon on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23718</link>
			<pubDate>Tue, 19 Apr 2011 20:39:43 +0000</pubDate>
			<dc:creator>BandonRandon</dc:creator>
			<guid isPermaLink="false">23718@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This issue is now 100% resolved thanks to a patch from Alex. Thanks guys!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23354</link>
			<pubDate>Fri, 15 Apr 2011 10:56:22 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">23354@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I had misunderstood the issue. It is not how the data is stored, but how the drop down does not &#34;hold&#34; its value upon a form validation failure when the &#34;0&#34; item is selected.&#60;br /&#62;
I have corrected the issue. Anyone experiencing this issue, please contact us to get a new version with the fix.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23277</link>
			<pubDate>Thu, 14 Apr 2011 12:32:33 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">23277@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am having trouble replicating your issue. I have created a form similar to yours and the 0 is being saved as 0 (not as blank). We did have this problem before, but we have corrected it.&#60;br /&#62;
If you send me (alex@rocketgenius.com) a WP admin login to your test site, I will be glad to take a closer look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23254</link>
			<pubDate>Thu, 14 Apr 2011 11:55:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23254@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We'll take a look at this and recreate it on our end and see what needs to be changes so that it passes as 0 and not an empty value.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>BandonRandon on "Conditional Logic Breaks if Value is set to 0"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-logic-breaks-if-value-is-set-to-0#post-23218</link>
			<pubDate>Thu, 14 Apr 2011 01:47:27 +0000</pubDate>
			<dc:creator>BandonRandon</dc:creator>
			<guid isPermaLink="false">23218@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form located at &#60;a href=&#34;http://bus-site.kcdtest.com/get-an-alert/&#34; rel=&#34;nofollow&#34;&#62;http://bus-site.kcdtest.com/get-an-alert/&#60;/a&#62; (which is a dev/test site) The drop down you see is conditional logic if you select &#34;Phone&#34; or &#34;Text&#34; you'll see a phone field if you select &#34;email&#34; you see an &#34;email&#34; field. The problem is if you select &#34;Text&#34; then hit submit the default value for the dropdown (email) is selected. &#60;/p&#62;
&#60;p&#62;I have narrowed this down to the fact that the value of &#34;text&#34; is set to 0.  If i set it to any other value it works fine. The problem is I need it set to '0' because the data is going into an external database. &#60;/p&#62;
&#60;p&#62;I'm assuming this is because somewhere you're using the php &#34;empty&#34; function and 0 shows up as empty so it moves on to the default value. &#60;/p&#62;
&#60;p&#62;One workaround may be for me to set the value to something until post submit then if the value is whatever set it to 0 before putting it into my external db. For example, set the value to 5 then if the value is 5 on &#60;code&#62;gform_post_submission&#60;/code&#62; set it back to 0 before putting it into my DB.&#60;/p&#62;
&#60;p&#62;Any suggestions or additional work arounds would be great.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
