<?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: Different notifications based on conditional logic in form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form</link>
		<description>Gravity Support Forums Topic: Different notifications based on conditional logic in form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:12:25 +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/different-notifications-based-on-conditional-logic-in-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-174492</link>
			<pubDate>Sun, 17 Mar 2013 18:03:13 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">174492@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jossoway on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-172086</link>
			<pubDate>Fri, 15 Mar 2013 05:41:28 +0000</pubDate>
			<dc:creator>jossoway</dc:creator>
			<guid isPermaLink="false">172086@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry for delay in replying about this - everything worked out fine in the end. Gravity Forms worked a treat. The problem was that Pipedrive didn't like ANY white space (i.e. laying code out nicely) - once I removed all formatting it worked fine. They're even going to implement this method on a second form on the site they liked the results so much.&#60;/p&#62;
&#60;p&#62;Thanks again for all the help. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-149365</link>
			<pubDate>Mon, 18 Feb 2013 12:34:25 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">149365@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sounds good. Thanks for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jossoway on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-148995</link>
			<pubDate>Mon, 18 Feb 2013 05:13:36 +0000</pubDate>
			<dc:creator>jossoway</dc:creator>
			<guid isPermaLink="false">148995@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Will do - I have documented my work and they're going to get back to me as soon as they know. I think the Gravity Forms side of things worked fine though. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-148796</link>
			<pubDate>Sun, 17 Feb 2013 23:25:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148796@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please let us know what you hear.  Maybe you just need a minor tweak to the format you are sending.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jossoway on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-148256</link>
			<pubDate>Sun, 17 Feb 2013 03:33:53 +0000</pubDate>
			<dc:creator>jossoway</dc:creator>
			<guid isPermaLink="false">148256@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi. Everything worked at the Wordpress / Gravity Forms end, except when I try and send the extra email to PipeDrive, I get an error indicating that PipeDrive isn't reading the email correctly, which may mean the email content isn't as expected. My client is speaking to PipeDrive support to find out what is causing this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-148202</link>
			<pubDate>Sun, 17 Feb 2013 01:53:35 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">148202@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Let us know how it turns out when you're done, or let us know if we can provide more assistance.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jossoway on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-146691</link>
			<pubDate>Wed, 13 Feb 2013 16:37:18 +0000</pubDate>
			<dc:creator>jossoway</dc:creator>
			<guid isPermaLink="false">146691@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much for all the help, and bearing with me through all my questions. I'm going to try and implement this tomorrow - fingers crossed I think I have everything I need. :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-146555</link>
			<pubDate>Wed, 13 Feb 2013 09:52:51 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">146555@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
insert form field content into the extra email
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;You're retrieving a submitted value on line 15 now.  What sort of additional information do you want to add to the email?  It will be added in a similar fashion to how the data from $entry['1'] was retrieved, but instead of just using it for a conditional test, just add it to the $content on line 20.  Something like this&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$content = &#38;quot;Message: &#38;quot; . $entry[&#38;#39;5&#38;#39;];&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That would add the value submitted in field 5 of the form to the static text &#34;Message: &#34; and that is what would be sent in your mail function.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jossoway on "Different notifications based on conditional logic in form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/different-notifications-based-on-conditional-logic-in-form#post-146213</link>
			<pubDate>Tue, 12 Feb 2013 09:43:27 +0000</pubDate>
			<dc:creator>jossoway</dc:creator>
			<guid isPermaLink="false">146213@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for all the help! So am I on the right track with something like his (see code below)&#60;/p&#62;
&#60;p&#62;Hopefully my last question - how would I insert form field content into the extra email? I have some JSON that I need to populate with the form submission at relevant locations, then send as plain text to a CRM system.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

add_action(&#38;quot;gform_notification_format&#38;quot;, &#38;quot;set_notification_format&#38;quot;, 10, 4);
function set_notification_format($format, $notification_type, $form, $lead){

    if($notification_type == &#38;quot;admin&#38;quot;)
        return &#38;quot;text&#38;quot;; //setting admin notifications as text
    else
        return &#38;quot;html&#38;quot;; //setting user notifications as text
}

add_action(&#38;#39;gform_after_submission_1&#38;#39;, &#38;#39;extra_email&#38;#39;, 10, 2);
function extra_email($entry, $form) {
    // change the 5 here to the field ID where your phone number is stored
    $enquirytype = $entry[&#38;#39;1&#38;#39;];

    // If the type of enquiry is Project Quote, send an extra email
    if ($enquirytype == &#38;#39;Project Quote&#38;#39;) {

    $content = &#38;quot;Whatever I want the content of the extra email to be&#38;quot;;

	// set your second admin email address here
    wp_mail(&#38;#39;admin2@example.net&#38;#39;, &#38;#39;Project Quote email&#38;#39;, $content);  

    }

}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
