<?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: gform_post_submission fired too late?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-fired-too-late</link>
		<description>Gravity Support Forums Topic: gform_post_submission fired too late?</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 11:49:49 +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/gform_post_submission-fired-too-late" rel="self" type="application/rss+xml" />

		<item>
			<title>Utkarsh on "gform_post_submission fired too late?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-fired-too-late#post-28624</link>
			<pubDate>Mon, 27 Jun 2011 17:30:06 +0000</pubDate>
			<dc:creator>Utkarsh</dc:creator>
			<guid isPermaLink="false">28624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ah, backwards compatibility is surely a pain.&#60;/p&#62;
&#60;p&#62;I managed to solve my issue by hooking into the pre_submission hook, as I only needed to verify if the form was valid, and redirect based on that (I had thought pre_submission was fired before validation), but it would have been very hacky to try and get the lead data at that point.&#60;/p&#62;
&#60;p&#62;If you need to maintain backwards compatibility, I'm with you that there should be another hook that is fired consistently, and the current one should be deprecated.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "gform_post_submission fired too late?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-fired-too-late#post-28617</link>
			<pubDate>Mon, 27 Jun 2011 16:58:03 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">28617@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The only reason is backward compatibility. The submission processing logic was initially developed late in the process, so the gform_post_submission hook was also fired late in the page life-cycle. After we moved the submission processing logic early in the life-cycle (mainly to be able to do real redirects), we had lots of users already using that hook and we wanted to affect as few of them as possible. So we made the choice of moving the gform_post_submission hook only if &#34;needed&#34; (i.e. if the confirmation was configured as a redirect).  I do agree with you that the result is a hook that is not consistent, which is less than ideal.&#60;/p&#62;
&#60;p&#62;What I think we will need to do is create a new hook that fires consistently after submission in the GFFormDisplay::process_form() function and eventually phase out gform_post_submission.&#60;/p&#62;
&#60;p&#62;Do you have any thoughts on this? I am opened to suggestions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Utkarsh on "gform_post_submission fired too late?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-fired-too-late#post-28564</link>
			<pubDate>Sun, 26 Jun 2011 19:25:47 +0000</pubDate>
			<dc:creator>Utkarsh</dc:creator>
			<guid isPermaLink="false">28564@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there any reason that the &#60;code&#62;gform_post_submission&#60;/code&#62; hook is only fired in GFFormDisplay::process_form, if there's a redirect in the form?&#60;/p&#62;
&#60;p&#62;I wanted to get the lead and form details (like the post_submission hook provides) as early in the request as possible to do some processing that requires modifying response headers.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
