<?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: Customize confirmation email via hook?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook</link>
		<description>Gravity Support Forums Topic: Customize confirmation email via hook?</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 08:29: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/customize-confirmation-email-via-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-79501</link>
			<pubDate>Mon, 08 Oct 2012 01:50:48 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">79501@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The user notification area supports conditional shortcodes:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So you can use conditional logic there if you need to do something other than {all_fields} and have more complex requirements.&#60;/p&#62;
&#60;p&#62;If that does not work for you, you can completely change the user notification using the gform_pre_submission_filter.  Here is an example of how to use it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
// change 19 to your form ID
add_filter(&#38;#39;gform_pre_submission_filter_19&#38;#39;, &#38;#39;conditional_message&#38;#39;);
function conditional_message($form){

	// update the &#38;quot;3&#38;quot; following &#38;quot;input_&#38;quot; to the ID of your field
	$value1 = rgpost(&#38;#39;input_3&#38;#39;);

	// I append my conditional text to the autoResponder (user notification) which is already set up in the form builder
	switch($interest) {
		case &#38;#39;beltguard&#38;#39;:
			$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] .= &#38;quot;Interest: Belt Guards&#38;lt;/p&#38;gt;&#38;quot;;
			break;
		case &#38;#39;safetyguard&#38;#39;:
			$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] .= &#38;quot;Interest: Safety Guards&#38;lt;/p&#38;gt;&#38;quot;;
			break;
		case &#38;#39;catalogue&#38;#39;:
			$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] .= &#38;quot;Interest: Catalogue&#38;lt;/p&#38;gt;&#38;quot;;
			break;
	}

	// return modified form
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Documentation: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission_filter&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>progressiveIT on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-79437</link>
			<pubDate>Sun, 07 Oct 2012 18:19:01 +0000</pubDate>
			<dc:creator>progressiveIT</dc:creator>
			<guid isPermaLink="false">79437@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We need custom HTML with conditional logic so simple templating does not work. We have achieved this via the gform_confirmation hook for the form confirmation page.&#60;/p&#62;
&#60;p&#62;However, for the corresponding email that is sent to the user, the original Gravity Forms HTML is sent -- we need our customized HTML to be sent instead.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-79433</link>
			<pubDate>Sun, 07 Oct 2012 16:13:57 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">79433@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can edit the user notification on the notifications page. Have you already tried that?  Or are you using the {all_fields} helper, and trying to change the look of that?&#60;/p&#62;
&#60;p&#62;You can't change the output of the {all_fields} helper.  If you want, you can craft your own HTML notification in the user notification area.  Enter your own HTML and insert the proper merge tags.&#60;/p&#62;
&#60;p&#62;Were you unsuccessful in doing that, or does that not work in your situation?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>progressiveIT on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-79422</link>
			<pubDate>Sun, 07 Oct 2012 13:04:28 +0000</pubDate>
			<dc:creator>progressiveIT</dc:creator>
			<guid isPermaLink="false">79422@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry - I see I put an extra word in my original question making it confusing.&#60;/p&#62;
&#60;p&#62;We've successfully customized the Confirmation Page that is displayed after successful form submission. We accomplished this via custom HTML generated at time of the gform_confirmation hook.&#60;/p&#62;
&#60;p&#62;However, the problem is with the corresponding email that is sent to the user submitting the form -- that HTML we have not been able to find a way to change.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-79214</link>
			<pubDate>Fri, 05 Oct 2012 23:28:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">79214@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please explain how the form confirmation and the form HTML are different, or the same.  &#60;/p&#62;
&#60;p&#62;For Gravity Forms, we normally talk about a few different things.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;&#60;strong&#62;Form:&#60;/strong&#62; this is the output of the gravityforms shortcode and shown to your website's visitors&#60;/li&#62;
&#60;li&#62;&#60;strong&#62;Confirmation:&#60;/strong&#62; this is shown after a successful form submission.  It can be text, load a page of your site, or redirect to another URL&#60;/li&#62;
&#60;li&#62;&#60;strong&#62;Admin notification:&#60;/strong&#62; this is configured on the top half of the notifications screen&#60;/li&#62;
&#60;li&#62;&#60;strong&#62;User notification:&#60;/strong&#62; this is configured on the bottom half of the notifications screen. Also referred to as the autoresponder&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;I'm wondering which you were successful at changing, with which hook, and what you would like to change next?  Maybe you are looking to modify the AutoResponder?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>progressiveIT on "Customize confirmation email via hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/customize-confirmation-email-via-hook#post-78980</link>
			<pubDate>Thu, 04 Oct 2012 19:21:59 +0000</pubDate>
			<dc:creator>progressiveIT</dc:creator>
			<guid isPermaLink="false">78980@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello - I've customized a confirmation form's html email via the gform_confirmation hook however the email confirmation that is sent is still the old hardcoded html.&#60;/p&#62;
&#60;p&#62;I haven't found a cooresponding gform_confirmation_email (or similar) hook. Is there a way to get the email output to look like the customized html I'm using for the form confirmation itself?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
