<?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 Redirects, preserving posted data</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data</link>
		<description>Gravity Support Forums Topic: Conditional Redirects, preserving posted data</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:19:36 +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-redirects-preserving-posted-data" rel="self" type="application/rss+xml" />

		<item>
			<title>divydovy on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13641</link>
			<pubDate>Tue, 30 Nov 2010 13:45:11 +0000</pubDate>
			<dc:creator>divydovy</dc:creator>
			<guid isPermaLink="false">13641@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl - much obliged :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13640</link>
			<pubDate>Tue, 30 Nov 2010 13:38:22 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13640@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is example code to redirect to a page and grab the full querystring from the existing page and pass it to the page you are redirecting to.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$redirect_to_url = &#38;quot;http://myurl.com/index.php?&#38;quot; . $_SERVER[&#38;quot;QUERY_STRING&#38;quot;];&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>divydovy on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13604</link>
			<pubDate>Tue, 30 Nov 2010 05:18:40 +0000</pubDate>
			<dc:creator>divydovy</dc:creator>
			<guid isPermaLink="false">13604@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi @Carl, @urmedia,&#60;/p&#62;
&#60;p&#62;Thanks both.&#60;/p&#62;
&#60;p&#62;@urmedia - I think that's the route I'll go down.&#60;/p&#62;
&#60;p&#62;@Carl - in case I need to switch method, is there any chance you could provide an example of how to rePOST the querystring on a redirect? I spent a long time looking (probably using the wrong search phrases) and couldn't find a secure way to do it without specifying each possible variable...&#60;/p&#62;
&#60;p&#62;Again, thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13565</link>
			<pubDate>Mon, 29 Nov 2010 17:19:51 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13565@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can create a custom PHP page that redirects based on querystring values being sent to it, and then passes those querystring values again to the redirect page.  Then set Form 1 to redirect to your custom PHP page, passing the form field values in the querystring, your custom PHP page determines where it should go and redirects to the appropriate page... passing the querystring values again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>urmedia on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13562</link>
			<pubDate>Mon, 29 Nov 2010 17:06:52 +0000</pubDate>
			<dc:creator>urmedia</dc:creator>
			<guid isPermaLink="false">13562@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;er...if you are sending the querystring through the header anyway...the conditional fields could always set up in a page that contains the form(s)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$Sex == $_POST[&#38;#39;gender&#38;#39;]

if (strtolowe($Sex) == strtolower(&#38;#39;female&#38;#39;)){ echo &#38;quot;this form&#38;quot;;}

elseif (strtolowe($Sex) == strtolower(&#38;#39;male&#38;#39;){echo &#38;quot;this one&#38;quot;;}

else {&#38;quot;default form&#38;quot;;}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;you can pretty much print whatever form you want based on the variables and conditionals you set up on a single page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>divydovy on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13557</link>
			<pubDate>Mon, 29 Nov 2010 16:21:28 +0000</pubDate>
			<dc:creator>divydovy</dc:creator>
			<guid isPermaLink="false">13557@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;Thanks so much - awesome support.&#60;/p&#62;
&#60;p&#62;I got this far in my research. My &#60;strike&#62;problem&#60;/strike&#62; challenge is that I need to post onto Form 2a, Form 2b or Form 2c depending the answers in Form 1.&#60;/p&#62;
&#60;p&#62;I know you say that's not possible without custom coding. I understood that to be the case and am pleased it's in the pipeline.&#60;/p&#62;
&#60;p&#62;I guess the solution might be to develop a custom function in WordPress that calls a different Form 2x depending on what the post values are.&#60;/p&#62;
&#60;p&#62;I'll try to post back here with a solution if I get it working. Any other ideas anyone?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13549</link>
			<pubDate>Mon, 29 Nov 2010 16:09:16 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">13549@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use the Confirmation Redirect functionality to set the confirmation for Form 1 to redirect to the page containing Form 2 and pass data from Form 1 via the query string to pre-populate fields in Form 2.&#60;/p&#62;
&#60;p&#62;You would have to setup Form 1 so that the confirmation redirect goes to the page that contains Form 2 using the URL Redirect.  You would then use the querystring builder for the redirect to pass the field values via the querystring.&#60;/p&#62;
&#60;p&#62;On form 2 you would setup each of the fields you want to pre-populate via the querystring so that they can be populated dynamically and give them a parameter name that is then used in the querystring (ex. parameter name email would then be used to pass email=my@email.com in the querystring).&#60;/p&#62;
&#60;p&#62;Gravity Forms does not currently do conditional redirects for the form confirmation.  It is a feature we plan on adding in the future, however currently it requires custom work to do.  You would create a PHP page that handles the redirect, and redirect your form to this PHP page and then write your own custom redirect.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>divydovy on "Conditional Redirects, preserving posted data"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-redirects-preserving-posted-data#post-13544</link>
			<pubDate>Mon, 29 Nov 2010 14:51:18 +0000</pubDate>
			<dc:creator>divydovy</dc:creator>
			<guid isPermaLink="false">13544@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Have searched extensively and haven't found the answer to this one.&#60;/p&#62;
&#60;p&#62;I am using four GFs in conjunction: the first essentially selects which of the remaining three the user is then presented with.&#60;/p&#62;
&#60;p&#62;The first page must be a separate form because the overall data capture process is quite long and complex and the requirement is to capture simple baseline information using the first form even if the longer secondary forms are then abandoned.&#60;/p&#62;
&#60;p&#62;The secondary forms must be able to retrieve the data posted from the first form.&#60;/p&#62;
&#60;p&#62;I have checked out this solution: &#60;a href=&#34;http://forum.gravityhelp.com/topic/submit-button-redirect-conditional&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/submit-button-redirect-conditional&#60;/a&#62; but can't work out a way to do this redirect whilst (securely) preserving the posted data.&#60;/p&#62;
&#60;p&#62;Is there ANY way to filter gform_post_submission (or something else) to make the redirection dependent on a posted value?&#60;/p&#62;
&#60;p&#62;I think the GF team has this functionality in the pipeline - any chance of some copy/pastery or will it just not work with the current releases?&#60;/p&#62;
&#60;p&#62;Thanks :)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
