<?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: Multiple forms</title>
		<link>https://legacy.forums.gravityhelp.com/topic/multiple-forms</link>
		<description>Gravity Support Forums Topic: Multiple forms</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 15:23:34 +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/multiple-forms" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-forms#post-35106</link>
			<pubDate>Mon, 12 Sep 2011 17:43:08 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">35106@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;force_download() is Code Igniter functionality correct?  This could be something related to Code Igniter code usage.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iamcanadian1973 on "Multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-forms#post-35094</link>
			<pubDate>Mon, 12 Sep 2011 16:29:05 +0000</pubDate>
			<dc:creator>iamcanadian1973</dc:creator>
			<guid isPermaLink="false">35094@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please ignore this question, I have no idea why its happening, but I'm sure I'm a bit too vague for anyone to help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>iamcanadian1973 on "Multiple forms"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multiple-forms#post-35090</link>
			<pubDate>Mon, 12 Sep 2011 16:08:36 +0000</pubDate>
			<dc:creator>iamcanadian1973</dc:creator>
			<guid isPermaLink="false">35090@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am running mutiple forms on a single page, they all submit and then force dowenload a pdf.&#60;/p&#62;
&#60;p&#62;When I had a single form it was working, then I added additional forms and the dowenload stopped working.&#60;/p&#62;
&#60;p&#62;Just as an example since you can't see the php code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_validation_message_2&#38;quot;, &#38;quot;change_message&#38;quot;, 99, 2);
add_filter(&#38;quot;gform_ajax_spinner_url_2&#38;quot;, &#38;quot;spinner_url&#38;quot;, 10, 2);

add_action(&#38;quot;gform_post_submission_2&#38;quot;, &#38;quot;post_submission_2&#38;quot;, 99, 2);

function change_message($message, $form){
    return &#38;#39;&#38;#39;;
}

function spinner_url($image_src, $form){
    return &#38;quot;&#38;quot;;
}

function post_submission_2($lead, $form) {

	$data = &#38;#39;/pdf/DesignGuide.pdf&#38;#39;;
	$name = &#38;#39;MegaDome-Design-Guide.pdf&#38;#39;;

	force_download($name, $data); 

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Everything works as expected, except now for some reason the pdf if around 20kb, which is just an empty corrupt pdf.&#60;/p&#62;
&#60;p&#62;I haven't changed anyhting else except the forms, so I'm not sure whast it could be.&#60;/p&#62;
&#60;p&#62;any thoughts?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
