<?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: Need to stop notfications from sending if criteria is not met</title>
		<link>https://legacy.forums.gravityhelp.com/topic/need-to-stop-notfications-from-sending-if-criteria-is-not-met</link>
		<description>Gravity Support Forums Topic: Need to stop notfications from sending if criteria is not met</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:27:05 +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/need-to-stop-notfications-from-sending-if-criteria-is-not-met" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Need to stop notfications from sending if criteria is not met"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-stop-notfications-from-sending-if-criteria-is-not-met#post-235142</link>
			<pubDate>Fri, 03 May 2013 09:43:46 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">235142@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad you got it sorted. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RMac on "Need to stop notfications from sending if criteria is not met"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-stop-notfications-from-sending-if-criteria-is-not-met#post-234517</link>
			<pubDate>Fri, 03 May 2013 01:24:26 +0000</pubDate>
			<dc:creator>RMac</dc:creator>
			<guid isPermaLink="false">234517@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;yeah I figured it out actually but I didn't do it that way.&#60;/p&#62;
&#60;p&#62;This is what I did:&#60;br /&#62;
'function before_email($email){&#60;br /&#62;
//cancel sending emails&#60;br /&#62;
//print_r($_POST);&#60;br /&#62;
if ($_POST[gform_submit] == 1) {&#60;br /&#62;
	$totalreach = $_POST['input_29'] + $_POST['input_30'];&#60;br /&#62;
	if ($totalreach &#38;gt;= 10000) {&#60;br /&#62;
		$email[&#34;abort_email&#34;] = false;&#60;br /&#62;
	}&#60;br /&#62;
	else {&#60;br /&#62;
		$email[&#34;abort_email&#34;] = true;&#60;br /&#62;
	}&#60;br /&#62;
}&#60;br /&#62;
	return $email;&#60;br /&#62;
}'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Need to stop notfications from sending if criteria is not met"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-stop-notfications-from-sending-if-criteria-is-not-met#post-234208</link>
			<pubDate>Thu, 02 May 2013 20:24:51 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">234208@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;We don't have a way with conditional notifications to check the sum of two fields, so you would have to do the math in a gform_pre_submission hook and throw the value into a hidden field, and then use that value as your comparison.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RMac on "Need to stop notfications from sending if criteria is not met"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-to-stop-notfications-from-sending-if-criteria-is-not-met#post-234174</link>
			<pubDate>Thu, 02 May 2013 19:46:07 +0000</pubDate>
			<dc:creator>RMac</dc:creator>
			<guid isPermaLink="false">234174@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have looked through the forums and have not seen a way to do what I want.&#60;/p&#62;
&#60;p&#62;What I want is simple. I wanted all forms to submit successfully but if the sum of two of the fields is not equal to a given amount then I want the notification to be canceled.&#60;/p&#62;
&#60;p&#62;Example:&#60;br /&#62;
If field 1 = 5 and field 2 = 5, the sum of those two fields is 10. Send the notification&#60;br /&#62;
If field 1 = 4 and field 2 = 7, the sum of those two fields is 11. Send the notification.&#60;br /&#62;
If field 1 = 4 and field 2 = 4, the sum of those two fields is less than 10. Don't send the notification.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
