<?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: Conditional notification mesasage</title>
		<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage</link>
		<description>Gravity Support Forums Topic: Conditional notification mesasage</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 10:20:42 +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/conditional-notification-mesasage" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-11227</link>
			<pubDate>Thu, 14 Oct 2010 17:21:22 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">11227@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, conditional notification message is still a planned feature for a future release.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>seventyone on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-11224</link>
			<pubDate>Thu, 14 Oct 2010 16:58:29 +0000</pubDate>
			<dc:creator>seventyone</dc:creator>
			<guid isPermaLink="false">11224@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;this would be a great add-on feature - many uses for conditional auto responders / emails - is it still in the works?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-8062</link>
			<pubDate>Sat, 31 Jul 2010 10:31:08 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">8062@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Idealist, you can change the confirmation message by replacing &#34;$form['autoResponder']['message']&#34; with &#34;$form['confirmation']['message']&#34;.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>idealists on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-8057</link>
			<pubDate>Sat, 31 Jul 2010 00:58:39 +0000</pubDate>
			<dc:creator>idealists</dc:creator>
			<guid isPermaLink="false">8057@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks David, great stuff!&#60;/p&#62;
&#60;p&#62;Can you also add different form fields (like you can in Admin-&#38;gt;Notifications - All Submitted, Req. Form Fields, etc, etc) to those email messages ($form['autoResponder']['message']) based on the same conditional logic?&#60;/p&#62;
&#60;p&#62;Could you show an example of how to do a different &#34;Confirmation Message&#34; based on conditional logic too?&#60;/p&#62;
&#60;p&#62;Again, many thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-7967</link>
			<pubDate>Thu, 29 Jul 2010 08:30:17 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">7967@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi guys, here is a little php snippet you can paste in your theme's functions.php file that will allow you to create custom email confirmation messages based on a drop down form field: &#60;a href=&#34;http://pastie.org/1065325&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1065325&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And here is a live sample; submit it twice with different answers to see the difference: &#60;a href=&#34;http://gravityforms.ounceoftalent.com/2010/07/custom-confirmation-messages/&#34; rel=&#34;nofollow&#34;&#62;http://gravityforms.ounceoftalent.com/2010/07/custom-confirmation-messages/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;The Breakdown&#60;/strong&#62;&#60;/p&#62;
&#60;p&#62;&#60;code&#62;add_filter(&#38;quot;gform_pre_submission_filter&#38;quot;, &#38;quot;update_confirmation&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Using the &#60;strong&#62;gform_pre_submission_filter&#60;/strong&#62; to modify the current form object and then pass it back to Gravity Forms to continue processing the form. The GF form object has a lot of properties that can be modified on the fly, one of those being the &#60;strong&#62;autoResponder&#60;/strong&#62; property which I'll go over in a just a second.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if($form[&#38;#39;id&#38;#39;] != 6) return $form;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Next we're making sure that we are on the right form. The form I used to test this had an id of 6, so this logic says &#34;if this form doesn't have an id of 6, let's not doing any else and return the $form object as is.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($_POST[&#38;#39;input_1&#38;#39;] == &#38;#39;Yes!&#38;#39;) {
		$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;#39;Great! Here\&#38;#39;s your custom confirmation message.&#38;#39;;
	} else {
		$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;#39;Wait? You really don\&#38;#39;t want a custom confirmation message?&#38;#39;;
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now we're ready to check the value the user submitted through our drop down field. You can access any values the user submitted through the form through the $_POST global. Want to see what's inside the $_POST after a form submission? Check out PHP's &#60;a href=&#34;http://php.net/manual/en/function.print-r.php&#34; rel=&#34;nofollow&#34;&#62;print_r&#60;/a&#62; function. It will output all the contents of any variable you pass to it. I've left this intact on the test form provided above so you can see what this looks like.&#60;/p&#62;
&#60;p&#62;You'll see (on my test form) ['input_1'] holds the value for the drop down. So if $_POST['input_1'] equals &#34;Yes!&#34; we can update the message property of the autoResponder property of the form (hope that isn't too confusing) and voila! You've got yourself the first custom email confirmation message. &#60;/p&#62;
&#60;p&#62;If $_POST['input_1'] equals anything else, they get a different custom email confirmation message. Keep in mind that you can still use tokens in these messages (ie {field_name:1}).&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$_POST[&#38;#39;input_1&#38;#39;]&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And the most important part... returning our modified form object.&#60;/p&#62;
&#60;p&#62;Haha, sorry that got a little long winded there. I guess I'm a teach-a-man-to-fish kind of guy. ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>juxprose on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-7965</link>
			<pubDate>Thu, 29 Jul 2010 05:32:30 +0000</pubDate>
			<dc:creator>juxprose</dc:creator>
			<guid isPermaLink="false">7965@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Carl, that's very helpful.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-7915</link>
			<pubDate>Wed, 28 Jul 2010 11:07:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">7915@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Conditional email notifications aren't currently possible.  We are planning on developing an advanced notification add-on that will add this type of functionality, but currently it isn't possible.&#60;/p&#62;
&#60;p&#62;It is possible to do a conditional form confirmation message by using the redirect functionality, passing the form field value to a custom PHP page and then showing the message you want to show based on that form field value.  But would take creating a custom redirect confirmation page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>binarylab on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-7906</link>
			<pubDate>Wed, 28 Jul 2010 07:31:47 +0000</pubDate>
			<dc:creator>binarylab</dc:creator>
			<guid isPermaLink="false">7906@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm looking for this functionality too!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>juxprose on "Conditional notification mesasage"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/conditional-notification-mesasage#post-7905</link>
			<pubDate>Wed, 28 Jul 2010 06:34:52 +0000</pubDate>
			<dc:creator>juxprose</dc:creator>
			<guid isPermaLink="false">7905@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;Is it possible to send a different message based on an action within the form?  So for example I have a drop-down, if a user selects option 1, they get email notification message 1, if they select option 2, they get message 2.&#60;/p&#62;
&#60;p&#62;Any suggestions as to how this might be achieved?&#60;/p&#62;
&#60;p&#62;Many thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
