<?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: {all_fields} is there a way to control how this looks in an email?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email</link>
		<description>Gravity Support Forums Topic: {all_fields} is there a way to control how this looks in an email?</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 16:49:08 +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/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33588</link>
			<pubDate>Thu, 25 Aug 2011 16:50:07 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">33588@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The header settings for the email is in code, in the common.php file.  Currently there is no hook or filter for it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shelzmike on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33572</link>
			<pubDate>Thu, 25 Aug 2011 16:12:56 +0000</pubDate>
			<dc:creator>shelzmike</dc:creator>
			<guid isPermaLink="false">33572@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I appreciate your help here; however, I have decided to just simply use HTML in the Notification email settings in the dashboard. This works quite a bit better. I do have one more question though;  (though not sure if I should paste it here or in another thread separately). I despise inline css as I have always used either an external style sheet or at minimum an internal style sheet. In this case, I would be interested in using an internal style-sheet over external. I know this goes in the head tag. Is the head tag for this email created from a function, or can I simply add the head tag in the notification customization area in the dashboard? Thanks!&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33560</link>
			<pubDate>Thu, 25 Aug 2011 13:26:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">33560@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like it's being processed for the correct form since you are getting your notification.  It just doesn't have any variables.&#60;/p&#62;
&#60;p&#62;A couple things to test for.  Can you see if the $_POST variable has values?  You can do this by adding this code to you functions.php right inside your function.  Put it at line 6 right before you try to grab all the variables.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
wp_mail(&#38;#39;youremail@gmail.com&#38;#39;, &#38;#39;POST variables from form 1 submission&#38;#39;, print_r($_POST,TRUE));
return $form;
exit;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Make sure that &#60;strong&#62;exit;&#60;/strong&#62; is before line 7:  &#34;/ give the _POST variables more normal names&#34;.  You just want to short circuit this function and see what the $_POST variable contains.&#60;/p&#62;
&#60;p&#62;That will dump the $_POST variable and email it to you.  We need to see if it has all the values you need.  If not, we need to figure out why.  I can't find anything wrong with the code you posted.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shelzmike on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33554</link>
			<pubDate>Thu, 25 Aug 2011 12:19:46 +0000</pubDate>
			<dc:creator>shelzmike</dc:creator>
			<guid isPermaLink="false">33554@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the info. So, I followed the instructions listed above and spent quite awhile coding (our form is an online web application that is really large - though I must say Gravity handles it very well!) and I am not getting the results I expected.&#60;/p&#62;
&#60;p&#62;Here is what I did:&#60;br /&#62;
1.) Changed the 'gform_pre_submission_filter_1' (as this is form ID 1)&#60;br /&#62;
2.) Created variables based on the ID's I got from inspecting the HTML using Firebug&#60;br /&#62;
3.) Wrote the HTML for the email accordingly (and corresponding to the template given above)&#60;br /&#62;
4.) Add this entire code to functions.php&#60;br /&#62;
5.) Filled out another application as a test (cannot wait for 1.6 so that I can just resubmit :) )&#60;/p&#62;
&#60;p&#62;Here is what happened:&#60;br /&#62;
I immediately got an email with the ORIGINAL formatting (blue/white/alternating table style that I am trying to change)&#60;/p&#62;
&#60;p&#62;Then, about 2 minutes later, I got an email of what looks like half of my custom HTML email. All of my regular text is showing; however, none of my variables are showing up.&#60;/p&#62;
&#60;p&#62;Here is the code: (bear in mind, this is still very rough, since it is the first iteration, I just used separate lines for each item to make tweaking easier. Then, I think I will go back and make it pretty).&#60;/p&#62;
&#60;p&#62;Here is the web url: &#60;a href=&#34;http://www.webapps.acsdish.com/acs-employment-application&#34; rel=&#34;nofollow&#34;&#62;http://www.webapps.acsdish.com/acs-employment-application&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is the code I wrote: &#60;a href=&#34;http://pastie.org/2428578&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2428578&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is the result that I got in email: &#60;a href=&#34;http://pastie.org/2428594&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2428594&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It appears as though it is just not pulling in the variables.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33243</link>
			<pubDate>Mon, 22 Aug 2011 17:16:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">33243@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To find the specific field id's you would need to inspect the HTML output of the form.  The id's will be visible in the form output as the id's for the inputs, etc.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shelzmike on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-33242</link>
			<pubDate>Mon, 22 Aug 2011 17:07:21 +0000</pubDate>
			<dc:creator>shelzmike</dc:creator>
			<guid isPermaLink="false">33242@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Great solution, though I have not tried it yet, but very straightforward. I had the exact same problem as the OP did here. Your solution looks straight-forward enough. However, i did have one question. Where can I find the input values of each field? (i.e.  input_1_3, etc.)&#60;/p&#62;
&#60;p&#62;Once I figure that out, I will be unstoppable. :)&#60;/p&#62;
&#60;p&#62;Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-31569</link>
			<pubDate>Wed, 03 Aug 2011 12:44:38 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31569@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@cowebdev I was able to work something out using the &#60;strong&#62;gform_pre_submission_filter&#60;/strong&#62; filter.  Here's the code I used:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/2315100&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2315100&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Add that to your functions.php.  Change the _12 on the end of the filter to match your form ID.&#60;/p&#62;
&#60;p&#62;Here's a test form where you can see it working in the confirmation you receive.  Leave some of the fields blank to see if the heading still comes through in the notification email.  Use your own email address to be sure you get the confirmation.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://gravity.chrishajer.com/testing-the-post/&#34; rel=&#34;nofollow&#34;&#62;http://gravity.chrishajer.com/testing-the-post/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The code is commented and is hopefully self-explanatory.  Please post if you need help getting it to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Kevin Flahaut on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-31494</link>
			<pubDate>Tue, 02 Aug 2011 21:23:09 +0000</pubDate>
			<dc:creator>Kevin Flahaut</dc:creator>
			<guid isPermaLink="false">31494@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There isn't a way (or easy way) to change the output of the {all_fields} merge code without hacking the core plugin files and you don't want to do that. That merge code was designed with &#34;helper&#34; styles for those who didn't want to spend a lot of time customizing their notification messages.&#60;/p&#62;
&#60;p&#62;The notifications allow HTML so you can use the individual field merge codes mixed with your own HTML markup to create your very own unique layout and styles. Go wild and create whatever layout you'd like. That's how the notification message settings were intended to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-31472</link>
			<pubDate>Tue, 02 Aug 2011 16:52:58 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">31472@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would not recommend modifying the core Gravity Forms plugin.  Of course, you can, but it makes upgrading difficult.&#60;/p&#62;
&#60;p&#62;After I posted my last response I started looking into how to filter the confirmation email and I am working on some proof of concept code.  I will post that within the hour if it works as expected.   Thanks for your patience.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cowebdev on "{all_fields} is there a way to control how this looks in an email?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/all_fields-is-there-a-way-to-control-how-this-looks-in-an-email#post-31470</link>
			<pubDate>Tue, 02 Aug 2011 16:32:32 +0000</pubDate>
			<dc:creator>cowebdev</dc:creator>
			<guid isPermaLink="false">31470@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What about , how the {all_fields} displays info?&#60;br /&#62;
Can I modify that template
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
