<?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: How to dynamically set redirect URL for Ajax-enabled form?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-to-dynamically-set-redirect-url-for-ajax-enabled-form</link>
		<description>Gravity Support Forums Topic: How to dynamically set redirect URL for Ajax-enabled form?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:44:46 +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/how-to-dynamically-set-redirect-url-for-ajax-enabled-form" rel="self" type="application/rss+xml" />

		<item>
			<title>goldenapples on "How to dynamically set redirect URL for Ajax-enabled form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-dynamically-set-redirect-url-for-ajax-enabled-form#post-51253</link>
			<pubDate>Sun, 04 Mar 2012 17:26:07 +0000</pubDate>
			<dc:creator>goldenapples</dc:creator>
			<guid isPermaLink="false">51253@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Actually, if I were making feature requests, I''d like to see two things:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;Get rid of the client-side redirection in lines 949-952 of &#60;code&#62;form-display.php&#60;/code&#62; -- its handled already in line 965, after the appropriate filters are applied, and that's a better place for it.&#60;/li&#62;
&#60;li&#62;Add a (PHP) filter in the function &#60;code&#62;get_js_redirect_confirmation()&#60;/code&#62; so that users can modify the javascript gformRedirect() function that gets output. (In my case, I have Google Analytics event tracking on all outgoing links on my site and would like to trigger an event before redirecting. I'd also like the ability to open the confirmation page in a new tab.)&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;Thanks for all the work on the plugin so far.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>goldenapples on "How to dynamically set redirect URL for Ajax-enabled form?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-to-dynamically-set-redirect-url-for-ajax-enabled-form#post-51251</link>
			<pubDate>Sun, 04 Mar 2012 17:05:08 +0000</pubDate>
			<dc:creator>goldenapples</dc:creator>
			<guid isPermaLink="false">51251@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Possibly related to this topic:? &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/gform_confirmation-filter-ajax-stuck&#34; rel=&#34;nofollow&#34;&#62;Confirmation filter + Ajax = stuck&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm trying to dynamically set the redirect url on my Ajax-enabled form - basically, its just a matter of adding field data to the query string, but it requires some server-side preprocessing so I can't just use the merge tags provided in the &#34;Form Settings&#34; dialog. &#60;/p&#62;
&#60;p&#62;I have a function hooked on &#60;code&#62;gform_confirmation&#60;/code&#62; which adds the query string args I need to the $confirmation['redirect'] argument. However, it never gets called because the &#60;code&#62;get_js_confirmation_redirect&#60;/code&#62; function is called before the &#60;code&#62;gform_confirmation&#60;/code&#62; filters are applied.&#60;/p&#62;
&#60;p&#62;I've worked around this by setting my form with a confirmation message, and having the entire confirmation url applied by the filter. However, it would make sense to move the &#60;code&#62;gform_confirmation&#60;/code&#62; filter above the function which performs the redirect for Ajax-enabled forms.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
