<?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: gform_after_submission &#38; conditional logic fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_after_submission-conditional-logic-fields</link>
		<description>Gravity Support Forums Topic: gform_after_submission &amp; conditional logic fields</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:28:04 +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/gform_after_submission-conditional-logic-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>minimay on "gform_after_submission &#38; conditional logic fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after_submission-conditional-logic-fields#post-335311</link>
			<pubDate>Thu, 20 Jun 2013 22:11:33 +0000</pubDate>
			<dc:creator>minimay</dc:creator>
			<guid isPermaLink="false">335311@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've found a very wonky workaround, I am so bad at arrays... I deleted the array items that were empty (using array_filter) and then isolated the selected array value using array_shift and then passed it to the entry in the $post_url $body. That did the trick but I'm sure this can be accomplished much more eloquently.&#60;/p&#62;
&#60;p&#62;Thank you for making Gravity Forms so awesome!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform_after_submission &#38; conditional logic fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after_submission-conditional-logic-fields#post-334539</link>
			<pubDate>Thu, 20 Jun 2013 12:19:45 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">334539@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've asked the developers to comment on this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>minimay on "gform_after_submission &#38; conditional logic fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_after_submission-conditional-logic-fields#post-334509</link>
			<pubDate>Thu, 20 Jun 2013 11:19:22 +0000</pubDate>
			<dc:creator>minimay</dc:creator>
			<guid isPermaLink="false">334509@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I have a contact form on my site that uses conditional logic to display one of many state county dropdowns depending on what state the user selects in a state pulldown. We need to pass this data to a third party site and I'm using the gform_after_submission function, which works great. But I'm not sure how to add all these county fields to the function, where my variable &#34;county&#34; could equal $entry[9], $entry[10], or all the way up to $entry[59]! Can someone help me figure out how to format this variable in the function? I thought it might be with an array but that doesn't work. I just don't know how to assemble everything, here's my code that isn't working-- I see the $county array when I print_r the fields, but it's not passing to the third party site. (I've changed the $post_url here for privacy)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function post_to_third_party($entry, $form) {
		$post_url = &#38;#39;Our Third Party Site&#38;#39;;
		$county = array($entry[&#38;#39;9&#38;#39;],$entry[&#38;#39;10&#38;#39;],$entry[&#38;#39;11&#38;#39;],$entry[&#38;#39;12&#38;#39;],$entry[&#38;#39;13&#38;#39;],$entry[&#38;#39;14&#38;#39;]);
		$body = array(
			&#38;#39;namefirst&#38;#39; =&#38;gt; $entry[&#38;#39;1&#38;#39;],
			&#38;#39;namelast&#38;#39; =&#38;gt; $entry[&#38;#39;2&#38;#39;],
			&#38;#39;zip&#38;#39; =&#38;gt; $entry[&#38;#39;3&#38;#39;],
			&#38;#39;email&#38;#39; =&#38;gt; $entry[&#38;#39;4&#38;#39;],
			&#38;#39;phone&#38;#39; =&#38;gt; $entry[&#38;#39;5&#38;#39;],
			&#38;#39;loanamt&#38;#39; =&#38;gt; $entry[&#38;#39;6&#38;#39;],
			&#38;#39;propvalue&#38;#39; =&#38;gt; $entry[&#38;#39;7&#38;#39;],
			&#38;#39;state&#38;#39; =&#38;gt; $entry[&#38;#39;8&#38;#39;],
			&#38;#39;county&#38;#39; =&#38;gt; $county
			);
		$request = new WP_Http();
		$response = $request-&#38;gt;post($post_url, array(&#38;#39;body&#38;#39; =&#38;gt; $body));
		print_r($post_url);
	}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
