<?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: Detect if submitted form is valid</title>
		<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid</link>
		<description>Gravity Support Forums Topic: Detect if submitted form is valid</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 08:29:21 +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/detect-if-submitted-form-is-valid" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368308</link>
			<pubDate>Mon, 08 Jul 2013 11:57:52 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">368308@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry I couldn't be of more help, but your unique circumstances limit what can be done. All my best.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>borsattoc on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368292</link>
			<pubDate>Mon, 08 Jul 2013 11:50:20 +0000</pubDate>
			<dc:creator>borsattoc</dc:creator>
			<guid isPermaLink="false">368292@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I cannot use a single URL becase every contact page has a different URL containing lang info (eg. /de/contact, es/contacto it/,contatti etc). I tried using a relative URL such as ?sent=true but you use parse_url inside handle_confirmation() and it fails redirecting me to the homepage. &#60;/p&#62;
&#60;p&#62;I'll try to figure out a different approach.&#60;br /&#62;
Thank you for your time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368246</link>
			<pubDate>Mon, 08 Jul 2013 11:29:01 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">368246@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, there is no way using PHP to grab if a form has been successfully submitted, unless you redirect to the page using URL redirect and include a query string. Then you could have your url include:&#60;/p&#62;
&#60;p&#62;?frmsuccess=1&#60;/p&#62;
&#60;p&#62;And then test against that using PHP to hide your message.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>borsattoc on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368239</link>
			<pubDate>Mon, 08 Jul 2013 11:24:09 +0000</pubDate>
			<dc:creator>borsattoc</dc:creator>
			<guid isPermaLink="false">368239@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I must use page content because the website is running in 5 different languages and every page translation has different shortcodes. I cannot use a single text for description unless I create a different form for each language (which is not a good solution since we are using wpml to translate strings).&#60;/p&#62;
&#60;p&#62;So here we come back to the original question. Is there a method to detect if submitted form is valid?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368131</link>
			<pubDate>Mon, 08 Jul 2013 10:25:00 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">368131@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you place the &#34;For information bla bla fill the form below&#34; message in the form description on the form settings page because that would be replaced by the confirmation message on successful submission.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>borsattoc on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368125</link>
			<pubDate>Mon, 08 Jul 2013 10:20:02 +0000</pubDate>
			<dc:creator>borsattoc</dc:creator>
			<guid isPermaLink="false">368125@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Unfortunately they do not fit my needs.&#60;br /&#62;
What I have to do is to show a message like &#34;For information bla bla fill the form below&#34;.&#60;/p&#62;
&#60;p&#62;Then, after submission, it shows a message like:&#60;br /&#62;
&#34;For information bla bla fill the form below. Thank you for contacting us&#34;.&#60;/p&#62;
&#60;p&#62;What I need is to hide &#34;For information bla bla fill the form below&#34; after the form has been successfully submitted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-368017</link>
			<pubDate>Mon, 08 Jul 2013 09:31:34 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">368017@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We have confirmations built into Gravity Forms to display messages relating to successful form submissions. Would they not be what you need?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>borsattoc on "Detect if submitted form is valid"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/detect-if-submitted-form-is-valid#post-367918</link>
			<pubDate>Mon, 08 Jul 2013 07:57:59 +0000</pubDate>
			<dc:creator>borsattoc</dc:creator>
			<guid isPermaLink="false">367918@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I have a question regarding form submission. I'd like to hide a message on my page only when users submit my form. &#60;/p&#62;
&#60;p&#62;How can I detect if submitted form is valid?&#60;/p&#62;
&#60;p&#62;I'm trying to do something like this in my template page:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;h1 &#38;lt;?php post_class(); ?&#38;gt;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/h1&#38;gt;
				&#38;lt;?php if(empty($_POST) /* &#124;&#124; $_POST &#38;amp;&#38;amp; invalid data supplied */ ): ?&#38;gt;
					&#38;lt;?php the_content(); ?&#38;gt;
				&#38;lt;?php else: ?&#38;gt;
					&#38;lt;?php _e(&#38;quot;Thank you for contacting us. We have received your message and will do our best to reply within one working day.&#38;quot;,&#38;quot;gravity_form&#38;quot;) ?&#38;gt;
				&#38;lt;?php endif; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thank you for your support
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
