<?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: Clear fields after submit</title>
		<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit</link>
		<description>Gravity Support Forums Topic: Clear fields after submit</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 04:21:18 +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/clear-fields-after-submit" rel="self" type="application/rss+xml" />

		<item>
			<title>cwoodside on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76723</link>
			<pubDate>Fri, 21 Sep 2012 14:00:48 +0000</pubDate>
			<dc:creator>cwoodside</dc:creator>
			<guid isPermaLink="false">76723@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, so I'm using the pre-submit - That is going to work great, just one problem...&#60;/p&#62;
&#60;p&#62;On the second page where it shows the data, there is a significant amount of space between the top percentage bar and my inserted table. I have been over the code and tried several things with no changes - any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76382</link>
			<pubDate>Wed, 19 Sep 2012 17:43:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76382@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could do exactly as you stated in the last paragraph: send a copy of their submission to their email and have a link hard coded there for them to go back to the form to enter more.&#60;/p&#62;
&#60;p&#62;You could also add a pre-submission confirmation page which they would see before final submission: &#60;a href=&#34;http://gravitywiz.com/2012/08/04/better-pre-submission-confirmation/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/2012/08/04/better-pre-submission-confirmation/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also, to make things simpler, you could allow just one entry per screen, and then redirect to the form when they submit (use a confirmation redirect.)&#60;/p&#62;
&#60;p&#62;I'm sure there are a lot of ways to make it easier for your users to submit their data.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cwoodside on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76326</link>
			<pubDate>Wed, 19 Sep 2012 13:24:06 +0000</pubDate>
			<dc:creator>cwoodside</dc:creator>
			<guid isPermaLink="false">76326@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not worried about them going back to enter more lines, but it seems very easy to submit without meaning to, I did several times when entering data.&#60;br /&#62;
These people are not at all computer savvy and it is just natural instinct to hit the back button if you didn't mean to submit and keep entering not realizing that what you already typed will now be entered twice.&#60;br /&#62;
I was trying to avoid this, I can see it happening a lot and the data will be auto dumped into a database, so they will all have to be manually updated - a potential nightmare.&#60;br /&#62;
I'm sorry I know nothing about jquery and have no idea what to put in that place.&#60;br /&#62;
I've looked up several examples and I have to say they are all way beyond my comprehension.&#60;br /&#62;
I know it resets if I just redirect to the same page again (reload the page), but I needed to give them a form to print out their data so they have copy of what they sent.&#60;br /&#62;
I guess another option is to have their email and send a copy of the submission and then redirect to the form again - would that work? Not preferred, but I've had to work around a lot already!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cwoodside on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76325</link>
			<pubDate>Wed, 19 Sep 2012 13:23:35 +0000</pubDate>
			<dc:creator>cwoodside</dc:creator>
			<guid isPermaLink="false">76325@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm not worried about them going back to enter more lines, but it seems very easy to submit without meaning to, I did several times when entering data.&#60;br /&#62;
These people are not at all computer savvy and it is just natural instinct to hit the back button if you didn't mean to submit and keep entering not realizing that what you already typed will now be entered twice.&#60;br /&#62;
I was trying to avoid this, I can see it happening a lot and the data will be auto dumped into a database, so they will all have to be manually updated - a potential nightmare.&#60;br /&#62;
I'm sorry I know nothing about jquery and have no idea what to put in that place.&#60;br /&#62;
I've looked up several examples and I have to say they are all way beyond my comprehension.&#60;br /&#62;
I know it resets if I just redirect to the same page again (reload the page), but I needed to give them a form to print out their data so they have copy of what they sent.&#60;br /&#62;
I guess another option is to have their email and send a copy of the submission and then redirect to the form again - would that work? Not preferred, but I've had to work around a lot already!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76169</link>
			<pubDate>Tue, 18 Sep 2012 20:17:20 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76169@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also, I did submit a couple entries and then used the browser back button.  I see this script in the source:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
&#38;lt;script type=&#38;#39;text/javascript&#38;#39;&#38;gt;
jQuery(window).bind(&#38;quot;pageshow&#38;quot;, function() {
  // update hidden input field
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The commented line &#34;update hidden input field&#34; is just  that: a comment.  It will not do anything.  That is where you would add your code to clear the form fields.  That was just an example of how to do it.  We can't do the coding for you but can try to help figure out &#60;strong&#62;what&#60;/strong&#62; needs to be done.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-76168</link>
			<pubDate>Tue, 18 Sep 2012 20:15:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76168@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Rather than trying to script it to clear the form when using the browser back button, how about adding a big button on the confirmation page which says &#34;Enter more awards&#34; or something, then load the initial form page, which will be clear of any previously entered form data.&#60;/p&#62;
&#60;p&#62;The other problem I ran into was that when using the list type field, you might have entered four lines of data, but going back, maybe you need 2 lines or 20 lines.  Going back to a screen with four lines of input to be entered makes no sense.&#60;/p&#62;
&#60;p&#62;Trying solutions which break the browser back button or try to work around default browser functionality is going to troublesome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cwoodside on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-75881</link>
			<pubDate>Mon, 17 Sep 2012 15:21:55 +0000</pubDate>
			<dc:creator>cwoodside</dc:creator>
			<guid isPermaLink="false">75881@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure,&#60;/p&#62;
&#60;p&#62;f &#38;amp; l name can be anything - e# needs to be 4letters4numbers (aaaa1111) and award has to be 100-99999. you then automatically get an add a line button, you can go up to 40. I find that 2-3 is great for testing.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-75274</link>
			<pubDate>Fri, 14 Sep 2012 01:17:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">75274@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;pre&#62;&#60;code&#62;[js]
$(window).bind(&#38;quot;pageshow&#38;quot;, function() {
  // update hidden input field
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The line commented out with the // is just a comment.  This function will not do anything.  The comment was a placeholder for your code to clear the fields.  It was referred to as pseudo code on stackexchange.&#60;/p&#62;
&#60;p&#62;I tried to look at this but could not get past the validation for the &#34;employee #&#34; - can you give me an example of good data to submit here, so I can get to the next page and see if using the browser back button breaks anything.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cwoodside on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-74962</link>
			<pubDate>Wed, 12 Sep 2012 11:29:13 +0000</pubDate>
			<dc:creator>cwoodside</dc:creator>
			<guid isPermaLink="false">74962@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, I fixed those with no changes to the page or how it works...&#60;/p&#62;
&#60;p&#62;Not sure why the &#34;my custom includes&#34; was there, this code is in a php file - header.php so I just deleted them, but will have a hard time finding my code in the future.&#60;/p&#62;
&#60;p&#62;As for the $ script, that was also in header.php and I had read that you couldn't use it, but this was the code on the page you sent me to - I just copied it over - (&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/clear-fields-after-submit#post-73166&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/clear-fields-after-submit#post-73166&#60;/a&#62;)&#60;br /&#62;
I did change it what you suggested but it still does not clear fields, seems to have no effect at all
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Clear fields after submit"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/clear-fields-after-submit#post-74897</link>
			<pubDate>Tue, 11 Sep 2012 23:13:14 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74897@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I see this error on your page:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Timestamp: 9/11/2012 10:08:01 PM
Error: TypeError: $ is not a function
Source File: &#60;a href=&#34;http://www.earnvpoints.com/vpadmin/login/?action=login&#34; rel=&#34;nofollow&#34;&#62;http://www.earnvpoints.com/vpadmin/login/?action=login&#60;/a&#62;
Line: 62&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The reason for this is that you cannot use $ by itself.  $ is reserved for Prototype in WordPress.  To use jQuery code, you might need to do something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[js]
&#38;lt;script type=&#38;#39;text/javascript&#38;#39;&#38;gt;
jQuery(window).bind(&#38;quot;pageshow&#38;quot;, function() {
  // update hidden input field
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Additionally, I see this text in the source of the page, which would work fine for PHP comments but not HTML comments:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
/**
 * MY CUSTOM INCLUDES
 */&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Remove that or properly comment it out.&#60;/p&#62;
&#60;p&#62;Resolve those issues and we will move on to the next problem.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
