<?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 a new form when one form is closed</title>
		<link>https://legacy.forums.gravityhelp.com/topic/show-a-new-form-when-one-form-is-closed</link>
		<description>Gravity Support Forums Topic: Show a new form when one form is closed</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 07:47:39 +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-a-new-form-when-one-form-is-closed" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Show a new form when one form is closed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-a-new-form-when-one-form-is-closed#post-57028</link>
			<pubDate>Mon, 30 Apr 2012 14:50:51 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">57028@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Right on, glad you got it working, thanks for letting us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iamdangavin on "Show a new form when one form is closed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-a-new-form-when-one-form-is-closed#post-57025</link>
			<pubDate>Mon, 30 Apr 2012 14:48:57 +0000</pubDate>
			<dc:creator>iamdangavin</dc:creator>
			<guid isPermaLink="false">57025@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Resolved - &#60;/p&#62;
&#60;p&#62;Realized it was already passing the_content filters so this works out perfect:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;bbc_closed_text&#38;#39;);
function bbc_closed_text($form) {
		// subtract the entry count from the limit to determine how many are left
		$newsletter = &#38;#39;[gravityform id=&#38;quot;2&#38;quot; name=&#38;quot;Newsletter&#38;quot; title=&#38;quot;false&#38;quot; description=&#38;quot;false&#38;quot; ajax=&#38;quot;true&#38;quot;]&#38;#39;;
		$form[&#38;#39;limitEntriesMessage&#38;#39;] = &#38;#39;&#38;lt;div class=&#38;quot;closed gform_heading active&#38;quot;&#38;gt;&#38;lt;img class=&#38;quot;eighty-sixed&#38;quot; src=&#38;quot;&#38;#39;.get_bloginfo(&#38;#39;stylesheet_directory&#38;#39;).&#38;#39;/images/eighty-sixed.png&#38;quot; /&#38;gt;&#38;#39;.$form[&#38;quot;description&#38;quot;].&#38;#39; &#38;lt;span class=&#38;quot;remainder&#38;quot;&#38;gt;* 0 Seats left&#38;lt;/span&#38;gt;&#38;lt;p&#38;gt;Aw, Shucks. Looks like you missed out this time. Check back soon so you can be a part of the next TBC meet up!&#38;lt;/p&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div class=&#38;quot;subscribe-form&#38;quot;&#38;gt;&#38;#39;.$newsletter.&#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;

		// return the form
		return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>iamdangavin on "Show a new form when one form is closed"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-a-new-form-when-one-form-is-closed#post-56994</link>
			<pubDate>Mon, 30 Apr 2012 12:30:03 +0000</pubDate>
			<dc:creator>iamdangavin</dc:creator>
			<guid isPermaLink="false">56994@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to use the gform_pre_render hook to alter the limitEntriesMessage to show some custom text along with another form.&#60;/p&#62;
&#60;p&#62;Currently I am using this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;bbc_closed_text&#38;#39;);
function bbc_closed_text($form) {
		// subtract the entry count from the limit to determine how many are left
		$form[&#38;#39;limitEntriesMessage&#38;#39;] = &#38;#39;&#38;lt;div class=&#38;quot;closed gform_heading active&#38;quot;&#38;gt;&#38;lt;img class=&#38;quot;eighty-sixed&#38;quot; src=&#38;quot;&#38;#39;.get_bloginfo(&#38;#39;stylesheet_directory&#38;#39;).&#38;#39;/images/eighty-sixed.png&#38;quot; /&#38;gt;&#38;#39;.$form[&#38;quot;description&#38;quot;].&#38;#39; &#38;lt;span class=&#38;quot;remainder&#38;quot;&#38;gt;* 0 Seats left&#38;lt;/span&#38;gt;&#38;lt;p&#38;gt;Aw, Shucks. Looks like you missed out this time. Check back soon so you can be a part of the next TBC meet up!&#38;lt;/p&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div class=&#38;quot;subscribe-form&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;

		// return the form
		return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What I would like to do is also show a sign up form for newsletters within that custom content in the &#34;subscribe-form&#34; div. I have tried this but no luck it just seems to break the site:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_pre_render&#38;#39;, &#38;#39;bbc_closed_text&#38;#39;);
function bbc_closed_text($form) {
		// subtract the entry count from the limit to determine how many are left
		$form[&#38;#39;limitEntriesMessage&#38;#39;] = &#38;#39;&#38;lt;div class=&#38;quot;closed gform_heading active&#38;quot;&#38;gt;&#38;lt;img class=&#38;quot;eighty-sixed&#38;quot; src=&#38;quot;&#38;#39;.get_bloginfo(&#38;#39;stylesheet_directory&#38;#39;).&#38;#39;/images/eighty-sixed.png&#38;quot; /&#38;gt;&#38;#39;.$form[&#38;quot;description&#38;quot;].&#38;#39; &#38;lt;span class=&#38;quot;remainder&#38;quot;&#38;gt;* 0 Seats left&#38;lt;/span&#38;gt;&#38;lt;p&#38;gt;Aw, Shucks. Looks like you missed out this time. Check back soon so you can be a part of the next TBC meet up!&#38;lt;/p&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div class=&#38;quot;subscribe-form&#38;quot;&#38;gt;&#38;#39;.gravity_form(1, false, false, false, &#38;#39;&#38;#39;, true).&#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;

		// return the form
		return $form;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
