<?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 User Favorites: patrickdevivo</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/patrickdevivo'>patrickdevivo</a></link>
		<description>Gravity Support Forums User Favorites: patrickdevivo</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 04:44:35 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Patrick DeVivo on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4816</link>
			<pubDate>Tue, 20 Apr 2010 17:55:43 +0000</pubDate>
			<dc:creator>Patrick DeVivo</dc:creator>
			<guid isPermaLink="false">4816@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad I could help. Let me know if you need further explanation, or if I'm insulting your intelligence by telling you too much stuff you already know :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>awarner20 on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4808</link>
			<pubDate>Tue, 20 Apr 2010 10:47:18 +0000</pubDate>
			<dc:creator>awarner20</dc:creator>
			<guid isPermaLink="false">4808@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much for the detailed instructions Patrick, most appreciated! I will be going live with a new site in a month or so and I'm planning on creating quite a few forms. This will be very helpful from a user's perspective.&#60;/p&#62;
&#60;p&#62;Thanks again, I'll let you know when I get to this:)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patrick DeVivo on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4778</link>
			<pubDate>Mon, 19 Apr 2010 17:54:07 +0000</pubDate>
			<dc:creator>Patrick DeVivo</dc:creator>
			<guid isPermaLink="false">4778@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@awarner, you need to have jquery and the ScrollTo plugin loaded on your page. You should use wp_enqueue_script() to load it into the header of your page (or footer). But first, drop this code into your theme's functions.php (loads jquery from Google's CDN:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
function my_init_method() {

wp_deregister_script( &#38;#39;jquery&#38;#39; );
wp_register_script(   &#38;#39;jquery&#38;#39;
    , &#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#38;#39;);
}    

add_action(&#38;#39;init&#38;#39;, &#38;#39;my_init_method&#38;#39;);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;then add this into your header.php, maybe right before &#38;lt;/header&#38;gt;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php wp_enqueue_script( &#38;#39;jquery&#38;#39;); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;then load in jquery ScrollTo, put the following right above &#38;lt;/header&#38;gt; &#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot; scr=&#38;quot;http://flesler-plugins.googlecode.com/files/jquery.scrollTo-1.4.2-min.js&#38;quot;&#38;gt;&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;(you should probably download it and serve it from your own server)&#60;/p&#62;
&#60;p&#62;And then after that add the following right below, still above &#38;lt;/header&#38;gt;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
if ($(&#38;#39;.validation_error&#38;#39;).length &#38;gt; 0) {
$(window).scrollTo( &#38;#39;#contact&#38;#39;);
}
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;where #contact is the id of the element your form is in. Or, if your form ID in gravityforms is 3 say, you could just use #gform_3&#60;/p&#62;
&#60;p&#62;I don't know if that helps. Hopefully it works. I'm by no means a jquery or javascript expert either.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>awarner20 on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4777</link>
			<pubDate>Mon, 19 Apr 2010 15:35:46 +0000</pubDate>
			<dc:creator>awarner20</dc:creator>
			<guid isPermaLink="false">4777@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Patrick or Kevin,&#60;/p&#62;
&#60;p&#62;Can either of you verify where this code snippet should go?&#60;/p&#62;
&#60;p&#62;@Patrick, thanks for sharing your solution!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4746</link>
			<pubDate>Sat, 17 Apr 2010 02:19:06 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">4746@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Nice job. Thanks for sharing your script.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Patrick DeVivo on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4745</link>
			<pubDate>Fri, 16 Apr 2010 23:47:35 +0000</pubDate>
			<dc:creator>Patrick DeVivo</dc:creator>
			<guid isPermaLink="false">4745@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I was able to fix it on my own. Just used some jQuery:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if ($(&#38;#39;.validation_error&#38;#39;).length &#38;gt; 0) {&#38;lt;br /&#38;gt;
      $(window).scrollTo( &#38;#39;#contact&#38;#39;, {easing:&#38;#39;easeOutBounce&#38;#39;} );&#38;lt;br /&#38;gt;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Patrick DeVivo on "Scroll to Form After Submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/scroll-to-form-after-submit#post-4744</link>
			<pubDate>Fri, 16 Apr 2010 21:44:43 +0000</pubDate>
			<dc:creator>Patrick DeVivo</dc:creator>
			<guid isPermaLink="false">4744@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;br /&#62;
I have a small problem which has been somewhat of a nuisance for me the past hour or so. I have a form up at &#60;a href=&#34;http://patrickdevivo.com/&#34; rel=&#34;nofollow&#34;&#62;http://patrickdevivo.com/&#60;/a&#62; which is kind of low down on the page. When a user submits it with no errors, everything works fine (try it out, I don't mind). However, if a user makes a mistake, then the form fields are highlighted with errors, but the user is stuck up at the top of the page and probably won't immediately think to scroll down to the form. Do you see what I'm saying?&#60;/p&#62;
&#60;p&#62;I'm wondering if there is some way to recognize either when a submission has errors, or just when a submission has been made in general, and from that execute a little php which executes a little jquery to scroll down to the form. Do you see?&#60;/p&#62;
&#60;p&#62;I'm by no means a PHP expert, but any advice would be very helpful.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Patrick
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
