<?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: Automatic notification if multiple radio buttons selected</title>
		<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected</link>
		<description>Gravity Support Forums Topic: Automatic notification if multiple radio buttons selected</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:15:21 +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/automatic-notification-if-multiple-radio-buttons-selected" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-112383</link>
			<pubDate>Wed, 02 Jan 2013 09:52:43 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">112383@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackandbanton on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-112382</link>
			<pubDate>Wed, 02 Jan 2013 09:52:21 +0000</pubDate>
			<dc:creator>blackandbanton</dc:creator>
			<guid isPermaLink="false">112382@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Many thanks, Chris - that's done the trick.&#60;/p&#62;
&#60;p&#62;i really appreciate your assistance with this, so thanks again and all the best for 2013.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-105054</link>
			<pubDate>Thu, 20 Dec 2012 15:34:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105054@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you would like to include the {all_fields} information which is already being set in the form builder  notification, you will need to append or prepend the message provided by the custom code to the existing notification.  To do that, line 23 and line 26 will need to use the PHP append operator &#60;strong&#62;.=&#60;/strong&#62;, rather than the assignment operator &#60;strong&#62;=&#60;/strong&#62;. Try making that change and see how your notifications look.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackandbanton on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-104017</link>
			<pubDate>Tue, 18 Dec 2012 11:19:01 +0000</pubDate>
			<dc:creator>blackandbanton</dc:creator>
			<guid isPermaLink="false">104017@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris - &#60;/p&#62;
&#60;p&#62;Apologies but I've been away for a week and only just had a chance to try this. It seems to work fine - I've received admin emails for both yes and no scenarios, with the Yes count being correct.&#60;/p&#62;
&#60;p&#62;My only query is that the admin email now doesn't show any of the form info i.e. personal details, questions asked and answers provided, etc.&#60;/p&#62;
&#60;p&#62;What I ideally need is to still see all of the form data that was submitted, but with a Yes or No type of message appended onto the start of the admin email if that makes sense?&#60;/p&#62;
&#60;p&#62;Many thanks for your help with this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-100979</link>
			<pubDate>Mon, 10 Dec 2012 16:43:28 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">100979@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Be sure to use the 'raw' or 'download' link to get all the code, especially the long list on line 11.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-100976</link>
			<pubDate>Mon, 10 Dec 2012 16:42:07 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">100976@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I took a look at your form and came up with the following code: &#60;a href=&#34;http://pastebin.com/nT1Hjftw&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/nT1Hjftw&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please change the form ID on line 4 to your form ID and please check the array of yes/no fields to be included on line 11.  That looked like all of them to me based on the submissions I tested, but you'll have to ensure that list of fields is accurate.&#60;/p&#62;
&#60;p&#62;Also, we were discussion here the &#34;autoResponder&#34; (user notification) but in your form I did not see an email field, so there would be no user notification.  I changed this code to update the the admin notification based on the number of yes radio button choices.  Let me know if you have any questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-95990</link>
			<pubDate>Tue, 27 Nov 2012 02:48:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">95990@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please export your form and email it to me at &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; and I will take a look at updating that code for you.  Please reference this topic in your email.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackandbanton on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-95669</link>
			<pubDate>Mon, 26 Nov 2012 09:10:55 +0000</pubDate>
			<dc:creator>blackandbanton</dc:creator>
			<guid isPermaLink="false">95669@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi - &#60;/p&#62;
&#60;p&#62;Just wondered if there was any progress on this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackandbanton on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-94010</link>
			<pubDate>Wed, 21 Nov 2012 09:55:04 +0000</pubDate>
			<dc:creator>blackandbanton</dc:creator>
			<guid isPermaLink="false">94010@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris - &#60;/p&#62;
&#60;p&#62;Many thanks. Yes you're right in what you said in terms of what we need to happen if answers are all NO or not.&#60;/p&#62;
&#60;p&#62;We already have the form created (see www(dot)employeeforms(dot)co(dot)uk), and it would be all of the radio buttons under Step 2 and Step 3 that would need to all be NO to trigger the specific notification.&#60;/p&#62;
&#60;p&#62;Is that all you need to clarify lines 5-9? If not please just let me know.&#60;/p&#62;
&#60;p&#62;I really appreciate your help with this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Automatic notification if multiple radio buttons selected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatic-notification-if-multiple-radio-buttons-selected#post-93746</link>
			<pubDate>Tue, 20 Nov 2012 22:12:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">93746@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Essentially, you want to say &#34;if there are any Yes answers, send one notification, otherwise send another one (the one for all NO responses).&#34;  Is that correct?&#60;/p&#62;
&#60;p&#62;It will look something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
&#38;lt;?php
// change the 34 here to your form ID
add_filter(&#38;#39;gform_pre_submission_filter_34&#38;#39;, &#38;#39;conditional_message&#38;#39;);
function conditional_message($form){
	// here you will need to determine if any radio buttons were selected &#38;quot;yes&#38;quot;
	// $yes should be set to the total number of YES answers, i.e. radio buttons marked yes
	// you will read the $_POST array and check to see if any radio button was chosen &#38;quot;Yes&#38;quot;
	/// this is dependent on your form and its fields
	$yes = 1;		// set $yes to any number here to test the logic below
	if($yes = 0) {
		$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;quot;This is the default message (meaning, everything was answered NO.&#38;quot;;
	}
	else {
		$form[&#38;#39;autoResponder&#38;#39;][&#38;#39;message&#38;#39;] = &#38;quot;This is the message you receive if you answered yes to any question.&#38;quot;;
	}
	// return modified form
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The logic in lines 5-9 is highly dependent on your form.  Go ahead and build the form and then we'll see what the best way is to see if any radio button was marked &#34;Yes&#34;.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
