<?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: notifications mail with conditional messages</title>
		<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages</link>
		<description>Gravity Support Forums Topic: notifications mail with conditional messages</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 09:39:54 +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/notifications-mail-with-conditional-messages" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76384</link>
			<pubDate>Wed, 19 Sep 2012 17:47:16 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76384@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76304</link>
			<pubDate>Wed, 19 Sep 2012 11:31:32 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">76304@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks, shortcodes worked great!&#60;br /&#62;
For anyone else that reads this thread, I did test shortcodes in the notification email subject line and it does not work. But the solution for that which I have tested/works previously is to use the gform_pre_submission_filter hook:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//Adjust the purchase request form subject line if the item is going to be purchased for a course reserve.
add_filter(&#38;quot;gform_pre_submission_filter_12&#38;quot;, &#38;quot;change_purchase_request_form&#38;quot;);
function change_purchase_request_form($form){
	// Check to see if this purchase is to be put on course reserves
	if (isset($_POST[&#38;quot;input_37&#38;quot;]) and ($_POST[&#38;quot;input_37&#38;quot;] == &#38;quot;Yes&#38;quot;)) {
		// Modify the subject line if so.
		$form[&#38;quot;notification&#38;quot;][&#38;quot;subject&#38;quot;] = &#38;quot;Reserve Purchase Express Request&#38;quot;;
	}
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This example only modifies the subject line of the notification for the administrator.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76143</link>
			<pubDate>Tue, 18 Sep 2012 18:36:40 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76143@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The conditional shortcodes can be used in the admin and user notifications, or confirmation message.  I don't believe they can be used in the subject of the admin notification. I never tried though, to be sure.&#60;/p&#62;
&#60;p&#62;Conditional shortcodes were added in 1.6.4
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76131</link>
			<pubDate>Tue, 18 Sep 2012 17:50:32 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">76131@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What version of the plugin is required to take advantage of the shortcodes? I would love to use this method. And can these shortcodes also be used in the subject field of the admin notification? Our production environment is running 1.6.4.2.1 and I need to know if I have to ask for the update to 1.6.7. Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76129</link>
			<pubDate>Tue, 18 Sep 2012 17:42:02 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">76129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@uvalib, you can use the new conditional shortcodes when building your HTML notification to administrators.  Read about it here: &#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;You could wrap your HTML in the conditional shortcode, so that if the value does not exist, there will be no bare HTML output in the notification (avoiding HTML with no value.)  No need to use the gform_pre_submission filter for that.&#60;/p&#62;
&#60;p&#62;Because the administrator and user notifications are crafted separately, one will not affect the other.&#60;/p&#62;
&#60;p&#62;If you don't want to use this method, we can show you how to do it in your theme's functions.php using one of the available hooks or filters.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>uvalib on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-76123</link>
			<pubDate>Tue, 18 Sep 2012 16:20:39 +0000</pubDate>
			<dc:creator>uvalib</dc:creator>
			<guid isPermaLink="false">76123@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;David indicated to Marco that it would require some customization for only displaying filled fields when you don't use the standard {all_fields} within the email body under notifications. I need to have the notification email to administrators be in a different field layout than the form. But they don't want to see empty fields when I use a format similar to Marco's above. What customization is necessary to accomplish this? Would I use the gform_pre_submission_filter hook to adjust the content of the notification to administrators? Will this affect the notification that goes to the user as well, which in my case is {all_fields}? If not this hook, another?&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-61709</link>
			<pubDate>Wed, 06 Jun 2012 19:58:09 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">61709@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;corradomatt - The issue we are discussing here is notification e-mails, and not status messages on the form. You could probably implement status messages on the form with JQuery.&#60;/p&#62;
&#60;p&#62;elinet - There is currently no way to control this as even conditional shortcodes aren't set-up to handle this kind of situation. You would have to customize Gravity Forms beyond what I'm able to provide support with here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>corradomatt on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-61703</link>
			<pubDate>Wed, 06 Jun 2012 18:53:38 +0000</pubDate>
			<dc:creator>corradomatt</dc:creator>
			<guid isPermaLink="false">61703@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm interested in something similar but it would have to do with time of day. So I'm thinking I want to send a message to clients who fill out the form during business hours that we will be with them shortly and another message to clients who fill out the form after hours that we will be in touch with them tomorrow.&#60;/p&#62;
&#60;p&#62;Would these types of functionality be built with a simple jquery javascript add-in or would it be more complicated than that?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>elinet on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-61300</link>
			<pubDate>Mon, 04 Jun 2012 08:37:11 +0000</pubDate>
			<dc:creator>elinet</dc:creator>
			<guid isPermaLink="false">61300@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;True,&#60;br /&#62;
i want to show only the &#34;fields&#34; with the asterisk, only if i select a a specific field in the form..
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "notifications mail with conditional messages"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/notifications-mail-with-conditional-messages#post-61282</link>
			<pubDate>Mon, 04 Jun 2012 07:53:06 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">61282@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, you are looking to only show the ones with an asterisk if they have a value?&#60;/p&#62;
&#60;p&#62;If so, this isn't something easily set-up within Gravity Forms notification system and would require some customization.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
