<?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: Show Validation Message in Template for Hidden Forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/show-validation-message-in-template-for-hidden-forms</link>
		<description>Gravity Support Forums Topic: Show Validation Message in Template for Hidden Forms</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 07:38:48 +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/show-validation-message-in-template-for-hidden-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>jeffsebring on "Show Validation Message in Template for Hidden Forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-validation-message-in-template-for-hidden-forms#post-83776</link>
			<pubDate>Thu, 25 Oct 2012 17:06:23 +0000</pubDate>
			<dc:creator>jeffsebring</dc:creator>
			<guid isPermaLink="false">83776@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That js actually needs a wrapper, but you get the idea. Too late to edit.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jeffschuette on "Show Validation Message in Template for Hidden Forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-validation-message-in-template-for-hidden-forms#post-83757</link>
			<pubDate>Thu, 25 Oct 2012 15:24:19 +0000</pubDate>
			<dc:creator>jeffschuette</dc:creator>
			<guid isPermaLink="false">83757@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for posting!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jeffsebring on "Show Validation Message in Template for Hidden Forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-validation-message-in-template-for-hidden-forms#post-83009</link>
			<pubDate>Tue, 23 Oct 2012 16:49:40 +0000</pubDate>
			<dc:creator>jeffsebring</dc:creator>
			<guid isPermaLink="false">83009@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I found a decent solution for this, that also takes care of the confirmation message.&#60;/p&#62;
&#60;p&#62;In my functions file I check to see if the for is submitted. Within my logic, I used the wp_footer hook to print a little javascript to scroll down to the bottom of the page, and show the form.&#60;/p&#62;
&#60;p&#62;So here is the entirety of my solution, all in the functions file without touching the template:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ( $_POST[ &#38;#39;is_submit_1&#38;#39; ] == true ) :

add_action( &#38;#39;wp_footer&#38;#39;, function()
{ ?&#38;gt;
&#38;lt;script&#38;gt;
$(&#38;#39;html, body&#38;#39;).animate({scrollTop:$(document).height()}, &#38;#39;slow&#38;#39;);
$( &#38;#39;.contact_form&#38;#39; ).toggle( &#38;#39;slow&#38;#39; );
&#38;lt;/script&#38;gt;
&#38;lt;?php }, 99999);

endif;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>jeffsebring on "Show Validation Message in Template for Hidden Forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-validation-message-in-template-for-hidden-forms#post-83001</link>
			<pubDate>Tue, 23 Oct 2012 15:53:16 +0000</pubDate>
			<dc:creator>jeffsebring</dc:creator>
			<guid isPermaLink="false">83001@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form that is hidden on page load, but displayed on a click event using javascript.&#60;/p&#62;
&#60;p&#62;This is problematic when validation errors occur, as the form is hidden again after the failed submission.&#60;/p&#62;
&#60;p&#62;Is there a way I can easily check if there is an error, and display a message in my template?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
