<?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: Print Submitted Form With Original Styling/Layout</title>
		<link>https://legacy.forums.gravityhelp.com/topic/print-submitted-form-with-original-stylinglayout</link>
		<description>Gravity Support Forums Topic: Print Submitted Form With Original Styling/Layout</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 00:57:55 +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/print-submitted-form-with-original-stylinglayout" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Print Submitted Form With Original Styling/Layout"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/print-submitted-form-with-original-stylinglayout#post-69113</link>
			<pubDate>Thu, 02 Aug 2012 07:37:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">69113@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@Nickel, what are you trying to accomplish?  Offer a print version of the entry where it looks like the form that was filled out?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Nickel on "Print Submitted Form With Original Styling/Layout"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/print-submitted-form-with-original-stylinglayout#post-69062</link>
			<pubDate>Wed, 01 Aug 2012 19:18:53 +0000</pubDate>
			<dc:creator>Nickel</dc:creator>
			<guid isPermaLink="false">69062@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm about to start this project myself... did you figure it out, and if not, can someone help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oursmartweb on "Print Submitted Form With Original Styling/Layout"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/print-submitted-form-with-original-stylinglayout#post-52982</link>
			<pubDate>Tue, 20 Mar 2012 14:11:44 +0000</pubDate>
			<dc:creator>oursmartweb</dc:creator>
			<guid isPermaLink="false">52982@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;*bump*&#60;/p&#62;
&#60;p&#62;Still struggling with this - any ideas thus far?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>oursmartweb on "Print Submitted Form With Original Styling/Layout"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/print-submitted-form-with-original-stylinglayout#post-52586</link>
			<pubDate>Thu, 15 Mar 2012 14:40:48 +0000</pubDate>
			<dc:creator>oursmartweb</dc:creator>
			<guid isPermaLink="false">52586@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Greetings all,&#60;/p&#62;
&#60;p&#62;I'm searching for any clues on how to print a submitted form WITH the original styling intact. I've successfully hacked together parts of print-entry.php to get this working, but I've hit some snags.&#60;/p&#62;
&#60;p&#62;Here's my code thus far:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_field_value_field_9&#38;#39;, &#38;#39;field_9&#38;#39;);

function field_9($value){
	$display_empty_fields = true;
//use the function name to match the field id
	$field_id = __FUNCTION__;
	preg_match(&#38;#39;@^(?:field_)?([^/]+)@i&#38;#39;, $field_id, $matches);
	$field = $matches[1];
//get value of field
	$value = RGFormsModel::get_lead_field_value($lead, $field);
	$display_value = GFCommon::get_lead_field_display($field, $value, $lead[&#38;quot;currency&#38;quot;]);
	$display_value = apply_filters(&#38;quot;gform_entry_field_value&#38;quot;, $display_value, $field, $lead, $form);
	if($display_empty_fields &#124;&#124; !empty($display_value) &#124;&#124; $display_value === &#38;quot;0&#38;quot;){
	    $is_last = $count &#38;gt;= $field_count &#38;amp;&#38;amp; !$has_product_fields ? true : false;
	    $last_row = $is_last ? &#38;quot; lastrow&#38;quot; : &#38;quot;&#38;quot;;
	    $display_value =  empty($display_value) &#38;amp;&#38;amp; $display_value !== &#38;quot;0&#38;quot; ? &#38;quot;&#38;amp;nbsp;&#38;quot; : $display_value;
	    $content = &#38;#39;&#38;#39;.$display_value.&#38;#39;&#38;#39;;
	    $content = apply_filters(&#38;quot;gform_field_content&#38;quot;, $content, $field, $value, $lead[&#38;quot;id&#38;quot;], $form[&#38;quot;id&#38;quot;]);
	}
//echo works, return doesn&#38;#39;t
	return $content;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It generates any value for a specified $field_id just fine, but it chokes on the return to dynamically populate the actual fields. It also will not return checkbox values, which I understand is a function of text values vs checked/not checked states.&#60;/p&#62;
&#60;p&#62;Soooooo...how can it be done? I really want to stay close to the metal on this, but I'm willing to keep coding if needed. I just need a way for my client to hit &#34;Print&#34; in the admin and see a fully-filled form that looks like the original template. I need this method to work, or to find a new way to go about it. Any ideas?&#60;/p&#62;
&#60;p&#62;Note: I'm working on one project right now, but there's at least one more developer's license to purchase for new clients if we can figure it out. :)&#60;/p&#62;
&#60;p&#62;Thanks for your time.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
