<?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 action order</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order</link>
		<description>Gravity Support Forums Topic: gform post submission action order</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:13:47 +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-action-order" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-71303</link>
			<pubDate>Thu, 16 Aug 2012 10:57:19 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">71303@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok. What you want to use is the gform_confirmation hook/filter. This hook fires after the form is submitted and the entry is created, so you will be able to do your custom database inserts just like you are in the gform_after_submission, but it also lets you specify/change the confirmation text or in your case, the redirect URL. The following page has an example on how to use this hook.&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-71241</link>
			<pubDate>Thu, 16 Aug 2012 00:11:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">71241@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll ping the developers again to get their thoughts.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-71225</link>
			<pubDate>Wed, 15 Aug 2012 19:34:01 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">71225@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any updates on this? Upon further analysis, I think I would have to modify the GF codebase so that a hook is created right after receiving the form submission. While this isn't a difficult change, it definitely stops me from easily upgrading to future versions.&#60;/p&#62;
&#60;p&#62;Would it be possible to add this new hook on your end?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-68273</link>
			<pubDate>Fri, 27 Jul 2012 15:57:59 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">68273@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am not sure. I'll forward this thread to a developer to see what he/she thinks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-68272</link>
			<pubDate>Fri, 27 Jul 2012 15:55:57 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">68272@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Will my hack work?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-68130</link>
			<pubDate>Thu, 26 Jul 2012 19:24:49 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">68130@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Any ideas? I'd prefer not to, but I think I've found where in the GF codebase I can modify so that gform_pre_submission() will also be sent the ENTRY object. But perhaps there was a reason why you guys decided not to pass the ENTRY object...&#60;/p&#62;
&#60;p&#62;The risk is that an update will mess things up. But at this point, I'm too far into GF to find another solution. Hopefully I can use my hack as a temp solution.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-68070</link>
			<pubDate>Thu, 26 Jul 2012 11:53:56 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">68070@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a martial arts tournament registration site. It will list multiple tournaments on the front page. When the user clicks on a particular tournament, they will be directed to the GF Registration form.&#60;/p&#62;
&#60;p&#62;But each tournament has conditions/rules specific to it, so to accomplish this that tournament's ID is sent as a queryString to the GF Registration form.&#60;/p&#62;
&#60;p&#62;pre_render() is used to lookup the tournamentID from a DB and then dynamically pre-populate the Registration form with values specific for that tournament.&#60;/p&#62;
&#60;p&#62;Upon submit, after_submission() does the following:&#60;br /&#62;
* generate a unique Registration ID (which is the primary key)&#60;br /&#62;
* perform DB INSERT of form entry values using registration ID as primary key&#60;br /&#62;
* set the queryString to the RegistrationID and set redirect URL to the Payment form (these don't work)&#60;/p&#62;
&#60;p&#62;The Payment Form:&#60;br /&#62;
* looks up the registration ID from the Registration table to retrieve the registration details&#60;br /&#62;
* obtains the cost for this competitor (cost depends on what he had chosen in the Registration form)&#60;br /&#62;
* generates encrypted paypal button&#60;br /&#62;
* dynamically generates URL and queryString to paypal (this won't work either)&#60;/p&#62;
&#60;p&#62;I suppose its possible to combine payment and registration into a single form, but there is still the problem of dynamically generating the paypal URL and queryString for the Payment Form that is the same as the original problem in the first place.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-68028</link>
			<pubDate>Thu, 26 Jul 2012 06:32:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">68028@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you explain what you want to accomplish, from the beginning here, start to finish?  Maybe we can come up with another approach for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-67999</link>
			<pubDate>Wed, 25 Jul 2012 20:42:33 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">67999@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Chris, from my test it appears that setting the redirect url/queryString in gform_after_submission() doesn't work.&#60;/p&#62;
&#60;p&#62;I need a way to dynamically set the redirect url/queryString based on the form's entered values from the user.&#60;/p&#62;
&#60;p&#62;I can't use gform_confirmation() because it doesn't send the ENTRY object as a parameter, which I need to extract the user entered field values.&#60;/p&#62;
&#60;p&#62;What can I do to accomplish my needs?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>run23 on "gform post submission action order"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform-post-submission-action-order#post-67998</link>
			<pubDate>Wed, 25 Jul 2012 20:29:40 +0000</pubDate>
			<dc:creator>run23</dc:creator>
			<guid isPermaLink="false">67998@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris. So is gform_after_submission() called before or after the actual redirect occurs?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
