<?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: Two forms on a page, and ajax only works on one of them.</title>
		<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them</link>
		<description>Gravity Support Forums Topic: Two forms on a page, and ajax only works on one of them.</description>
		<language>en-US</language>
		<pubDate>Tue, 07 Apr 2026 22:19:10 +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/two-forms-on-a-page-and-ajax-only-works-on-one-of-them" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-370260</link>
			<pubDate>Tue, 09 Jul 2013 05:24:04 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">370260@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome, and I am glad you have figured it out.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ollybowman on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-370232</link>
			<pubDate>Tue, 09 Jul 2013 05:19:02 +0000</pubDate>
			<dc:creator>ollybowman</dc:creator>
			<guid isPermaLink="false">370232@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I've narrowed it down to the force_balance_tags in this:&#60;/p&#62;
&#60;p&#62;add_filter('the_content', 'remove_empty_p', 20, 1);&#60;/p&#62;
&#60;p&#62;function remove_empty_p($content){&#60;br /&#62;
	$content = force_balance_tags($content);&#60;br /&#62;
	return preg_replace('#&#38;lt;p&#38;gt;\s*+(&#38;lt;br\s*/*&#38;gt;)?\s*&#38;lt;/p&#38;gt;#i', '', $content);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I've stopped calling it as a filter, and i'm now using it where I need it directly, and it seems to have fixed the problem.&#60;/p&#62;
&#60;p&#62;Thanks for all your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-370117</link>
			<pubDate>Tue, 09 Jul 2013 03:50:22 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">370117@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I can't see anything in those two files that could be adding the extra space, however it looks like the functions file does include a number of other files.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ollybowman on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-369040</link>
			<pubDate>Mon, 08 Jul 2013 18:28:34 +0000</pubDate>
			<dc:creator>ollybowman</dc:creator>
			<guid isPermaLink="false">369040@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;functions.php is here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/6V3AnwLz&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/6V3AnwLz&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and this file bones.php is included.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastebin.com/1hDVX1cX&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/1hDVX1cX&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-369022</link>
			<pubDate>Mon, 08 Jul 2013 18:18:52 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">369022@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry about the delay, could I get a look at your themes functions.php file, you can copy it to Pastie or PasteBin, the links are above the reply box.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ollybowman on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-368874</link>
			<pubDate>Mon, 08 Jul 2013 16:41:38 +0000</pubDate>
			<dc:creator>ollybowman</dc:creator>
			<guid isPermaLink="false">368874@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok, I thought that's what you meant, tried it, but the shortcodes just appear on the screen.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-368870</link>
			<pubDate>Mon, 08 Jul 2013 16:34:34 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">368870@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So if you edit that page I presume you have a form embed code, wrap the code in the raw tags so it looks something like this&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[raw][gravityform id=&#38;quot;1&#38;quot; name=&#38;quot;ajax form&#38;quot; ajax=&#38;quot;true&#38;quot;][/raw]&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>ollybowman on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-368860</link>
			<pubDate>Mon, 08 Jul 2013 16:27:31 +0000</pubDate>
			<dc:creator>ollybowman</dc:creator>
			<guid isPermaLink="false">368860@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, not sure what you mean by wrapping the form in [raw] tags though.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-368805</link>
			<pubDate>Mon, 08 Jul 2013 16:01:22 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">368805@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK found it, something in your theme, probably in the functions.php file is adding an unwanted space.  This is an excerpt from the script beneath the form when using your theme&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;var is_form = !(form_content.length &#38;lt; = 0 &#124;&#124; is_redirect);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and this is what it should be&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;var is_form = !(form_content.length &#38;lt;= 0 &#124;&#124; is_redirect);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you try wrapping your form in [raw] [/raw] tags to see if that makes any difference.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Richard Vav on "Two forms on a page, and ajax only works on one of them."</title>
			<link>https://legacy.forums.gravityhelp.com/topic/two-forms-on-a-page-and-ajax-only-works-on-one-of-them#post-368786</link>
			<pubDate>Mon, 08 Jul 2013 15:52:58 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">368786@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, you can switch it back, I will get back to you once I have gone through and compared the scripts.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
