<?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 if duplicate entry on AJAX submitted form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/redirect-if-duplicate-entry-on-ajax-submitted-form</link>
		<description>Gravity Support Forums Topic: Redirect if duplicate entry on AJAX submitted form</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 18:23:52 +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-if-duplicate-entry-on-ajax-submitted-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Redirect if duplicate entry on AJAX submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-if-duplicate-entry-on-ajax-submitted-form#post-98421</link>
			<pubDate>Mon, 03 Dec 2012 15:47:58 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">98421@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please let us know if that works.  If not, we can try to come up with something else.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>44pixels on "Redirect if duplicate entry on AJAX submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-if-duplicate-entry-on-ajax-submitted-form#post-98383</link>
			<pubDate>Mon, 03 Dec 2012 13:49:50 +0000</pubDate>
			<dc:creator>44pixels</dc:creator>
			<guid isPermaLink="false">98383@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ah okay, good idea, thank you for the suggestion, I'll try this out!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Redirect if duplicate entry on AJAX submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-if-duplicate-entry-on-ajax-submitted-form#post-98254</link>
			<pubDate>Mon, 03 Dec 2012 07:47:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">98254@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think you could use the gform_post_render hook to load your JavaScript on the page after a validation error (you'd have to test for that, so the code does not run every time the form is rendered )  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_post_render&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_post_render&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The script you add could be something simple like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
  window.location.replace(&#38;quot;http://www.readysetrecyclecontest.org/duplicate-entry/&#38;quot;);
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>44pixels on "Redirect if duplicate entry on AJAX submitted form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/redirect-if-duplicate-entry-on-ajax-submitted-form#post-98076</link>
			<pubDate>Sun, 02 Dec 2012 20:50:59 +0000</pubDate>
			<dc:creator>44pixels</dc:creator>
			<guid isPermaLink="false">98076@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm attempting to redirect a form if there is a duplicate email entry to a separate page. I'm actively testing on this page but the form lives elsewhere as part of a &#34;game&#34; on the site - &#60;a href=&#34;http://www.readysetrecyclecontest.org/test/&#34; rel=&#34;nofollow&#34;&#62;http://www.readysetrecyclecontest.org/test/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I've tried using gform_duplicate_message, gform_validation, gform_pre_submission hooks but implementing a PHP redirect only seems to work for forms that aren't submitted via AJAX. When I test using:&#60;/p&#62;
&#60;p&#62;header('Location: &#60;a href=&#34;http://www.readysetrecyclecontest.org/duplicate-entry&#34; rel=&#34;nofollow&#34;&#62;http://www.readysetrecyclecontest.org/duplicate-entry&#60;/a&#62;');&#60;/p&#62;
&#60;p&#62;in any of the hooks I mentioned the form doesn't submit it just hangs and nothing happens. I've tested using the admin preview and it works fine, but I need the form to submit via AJAX for other reasons so I'm trying to work out a solution to this redirect issue.&#60;/p&#62;
&#60;p&#62;Any help is greatly appreciated, thank you!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
