<?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: Reset form after Confirmation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/reset-form-after-confirmation</link>
		<description>Gravity Support Forums Topic: Reset form after Confirmation</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 06:10:24 +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/reset-form-after-confirmation" rel="self" type="application/rss+xml" />

		<item>
			<title>gbotica on "Reset form after Confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/reset-form-after-confirmation#post-63031</link>
			<pubDate>Tue, 19 Jun 2012 19:44:58 +0000</pubDate>
			<dc:creator>gbotica</dc:creator>
			<guid isPermaLink="false">63031@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, I couldn't find any docs on this, or any GF function to perform some kind of a reset. I'm using the twitter bootstrap js modal (I had issues with js conflict when using others...). the modal js has a callback function run when the modal is closed.&#60;/p&#62;
&#60;p&#62;So, this bit of jQuery seems to do the trick:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// reset the contact form on modal close
	jQuery(&#38;#39;#myModalWindow&#38;#39;).on(&#38;#39;hide&#38;#39;, function () {

	      $this = $(this);
	    	$this.find(&#38;#39;form&#38;#39;)[0].reset();
	    	$this.find(&#38;#39;.val_summary&#38;#39;).remove(); // the validation summary message
	    	$this.find(&#38;#39;input[type=text]&#38;#39;).val(&#38;#39;&#38;#39;); // this appears to be necessary because if a field passes validation and then I reset the form, these fields do not reset for some reason.
	       $this.find(&#38;#39;li.gfield_error div.validation_message&#38;#39;).remove(); // remove the validation meesages
		$this.find(&#38;#39;li.gfield_error&#38;#39;).removeClass(&#38;#39;gfield_error&#38;#39;); // remove the validation classes.

	   });&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Reset form after Confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/reset-form-after-confirmation#post-56003</link>
			<pubDate>Fri, 20 Apr 2012 14:39:58 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">56003@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Do you have a link to share by chance?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ginjweb on "Reset form after Confirmation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/reset-form-after-confirmation#post-55984</link>
			<pubDate>Fri, 20 Apr 2012 12:35:11 +0000</pubDate>
			<dc:creator>ginjweb</dc:creator>
			<guid isPermaLink="false">55984@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I've got a form working in a modal window. The form sends and displays the confirmation. However if a user closes the modal then clicks to send another message the modal opens and displays the same confirmation. How do I get the form to reset once a message is sent.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
