<?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: Redirect after form submission</title>
		<link>https://legacy.forums.gravityhelp.com/topic/redirect-after-form-submission</link>
		<description>Gravity Support Forums Topic: Redirect after form submission</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:35:34 +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/redirect-after-form-submission" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Redirect after form submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-after-form-submission#post-89270</link>
			<pubDate>Fri, 09 Nov 2012 13:13:48 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">89270@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you were able to figure it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mixd on "Redirect after form submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-after-form-submission#post-89255</link>
			<pubDate>Fri, 09 Nov 2012 12:51:16 +0000</pubDate>
			<dc:creator>Mixd</dc:creator>
			<guid isPermaLink="false">89255@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Never mind, I figured it was too late to change the redirect after form submission.&#60;/p&#62;
&#60;p&#62;I put the gform_confirmation filter inside a gform_validation filter (testing if the email address was being changed) and it worked nicely.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mixd on "Redirect after form submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-after-form-submission#post-89247</link>
			<pubDate>Fri, 09 Nov 2012 12:36:22 +0000</pubDate>
			<dc:creator>Mixd</dc:creator>
			<guid isPermaLink="false">89247@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I am trying to change the redirect location of a form based on data checked within &#60;code&#62;gform_after_submission&#60;/code&#62;. I was wondering where to trigger the &#60;code&#62;gform_confirmation&#60;/code&#62; filter?&#60;/p&#62;
&#60;p&#62;Essentially what is happening is this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/** Set location to redirect to if the email address is changed */
function changed_username_redirect($confirmation, $form, $lead, $ajax){
    $confirmation = array(&#38;quot;redirect&#38;quot; =&#38;gt; site_url(&#38;#39;/login/?updated=profile&#38;#39;));
    return $confirmation;
}

/** Update user profile after form is submitted */
function my_profile_update( $entry, $form ) {

    // I have functions to update the user&#38;#39;s profile here

	// If user&#38;#39;s email address has changed
	if ( $user_email != current_user_email() ) {

		// Change redirect location as we will be booted out
		add_filter(&#38;#39;gform_confirmation_4&#38;#39;, &#38;#39;changed_username_redirect&#38;#39;, 100, 4);

	}

}

add_action( &#38;#39;gform_after_submission_4&#38;#39;, &#38;#39;my_profile_update&#38;#39;, 100, 2 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But it is not picking up the change in confirmation redirect.&#60;br /&#62;
Do I have something wrong in the position / ordering of the filter?&#60;br /&#62;
Am I able to change the redirect location, or do I need to trigger the filter earlier?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
