<?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: best way to show &#34;please wait&#34; message after submission waiting for redirect</title>
		<link>https://legacy.forums.gravityhelp.com/topic/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect</link>
		<description>Gravity Support Forums Topic: best way to show &quot;please wait&quot; message after submission waiting for redirect</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:36:37 +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/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "best way to show &#34;please wait&#34; message after submission waiting for redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect#post-12333</link>
			<pubDate>Tue, 09 Nov 2010 11:06:19 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">12333@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should use the $form[&#34;id&#34;] variable that is passed to the gform_post_submission hook. See code snippet below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;gf_submission_hook&#38;quot;, 10, 2);
function gf_submission_hook($entry, $form){
       if($form[&#38;quot;id&#38;quot;] == 10){
             //add code for form 10
       }
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>equalizer on "best way to show &#34;please wait&#34; message after submission waiting for redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect#post-12319</link>
			<pubDate>Tue, 09 Nov 2010 02:03:10 +0000</pubDate>
			<dc:creator>equalizer</dc:creator>
			<guid isPermaLink="false">12319@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is there a way to get the name of the form though in PHP?  I thought it only received the names of the fields.  Hopefully I am wrong?&#60;/p&#62;
&#60;p&#62;Other ways I've thought of are:&#60;/p&#62;
&#60;p&#62;1) to add a hidden input to the form i want to trigger the message, and check for a specific value that is unlikely to coincide with any real input on any form with the same input field name;&#60;/p&#62;
&#60;p&#62;2) to check the URL the request is coming from (not sure this will work with the way Wordpress works overall though)&#60;/p&#62;
&#60;p&#62;I guess #1 is pretty straightforward and that's probably what I'll implement in the future, unless there is in fact a way to get the name of the submitting form in PHP.  I haven't been able to find a way to do that.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "best way to show &#34;please wait&#34; message after submission waiting for redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect#post-12275</link>
			<pubDate>Mon, 08 Nov 2010 09:58:42 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">12275@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You should be able to use inheritance from the unique form ID like &#34;#gform_wrapper_8 #input_8_43&#34;. Have you tried that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>equalizer on "best way to show &#34;please wait&#34; message after submission waiting for redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/best-way-to-show-please-wait-message-after-submission-waiting-for-redirect#post-12262</link>
			<pubDate>Mon, 08 Nov 2010 05:19:36 +0000</pubDate>
			<dc:creator>equalizer</dc:creator>
			<guid isPermaLink="false">12262@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using the form to redirect after submission, and I am using the post submission hook to echo out a message to tell the user not to reload the page and to be patient (in case the redirect takes several seconds).&#60;/p&#62;
&#60;p&#62;However, as expected, this makes it output that on all my forms.  So I used a simple if statement to see if one of the required fields was filled in, and this fixes it.&#60;/p&#62;
&#60;p&#62;The problem is, the inputs are named generically, so any form with the same input_# would trigger it.  What is a more reliable way of filtering which form was submitted when using the post_submission hook?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
