<?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: When Does gform_after_submission Fire?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/when-does-gform_after_submission-fire</link>
		<description>Gravity Support Forums Topic: When Does gform_after_submission Fire?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:35:40 +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/when-does-gform_after_submission-fire" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "When Does gform_after_submission Fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/when-does-gform_after_submission-fire#post-213697</link>
			<pubDate>Thu, 18 Apr 2013 00:59:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">213697@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cgrymala on "When Does gform_after_submission Fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/when-does-gform_after_submission-fire#post-213543</link>
			<pubDate>Wed, 17 Apr 2013 22:46:22 +0000</pubDate>
			<dc:creator>cgrymala</dc:creator>
			<guid isPermaLink="false">213543@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome. Thank you.&#60;/p&#62;
&#60;p&#62;The main concern is basically to remove entries after the payment goes through, in order to offer them some additional privacy (there are multiple admins on the site, and only one of them is supposed to see the payer's contact information).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "When Does gform_after_submission Fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/when-does-gform_after_submission-fire#post-213516</link>
			<pubDate>Wed, 17 Apr 2013 22:24:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">213516@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It will remove the entry before you get an answer from PayPal.  To test this, submit a form, and get redirected to PayPal.  Now,  close that window, and look in the admin for the entry.  It is there.  You will need to use a hook like gform_paypal_post_ipn:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_post_ipn&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_paypal_post_ipn&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is fired after the IPN response from PayPal.  That would still require that the IPN response is received.  In your case, if you closed the browser window, no IPN would be sent and the orphan entry would still exist in a 'processing' state.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cgrymala on "When Does gform_after_submission Fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/when-does-gform_after_submission-fire#post-209274</link>
			<pubDate>Sun, 14 Apr 2013 09:43:14 +0000</pubDate>
			<dc:creator>cgrymala</dc:creator>
			<guid isPermaLink="false">209274@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a client that would like to remove entries automatically from the database after the email notification is sent. I've found some support entries here that indicate the gform_after_submission() hook is what I want to hook into in order to remove those entries.&#60;/p&#62;
&#60;p&#62;However, the one wrinkle in this is that we are using the form to connect to PayPal, and the form is set up not to send admin notifications until after payment is sent.&#60;/p&#62;
&#60;p&#62;My question, then, is: Does the gform_after_submission() hook fire when the user hits the Submit button on the form, or does it fire after PayPal returns the user back to the client's website? I'm guessing that I shouldn't remove the entry until after PayPal returns the user back to the client's website, so I want to make sure I'm using the right hook.&#60;/p&#62;
&#60;p&#62;Thanks for any advice you can offer
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
