<?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: Counting responses</title>
		<link>https://legacy.forums.gravityhelp.com/topic/counting-responses</link>
		<description>Gravity Support Forums Topic: Counting responses</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 15:47:17 +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/counting-responses" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43625</link>
			<pubDate>Sat, 10 Dec 2011 10:00:58 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">43625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Glad to hear. :)&#60;/p&#62;
&#60;p&#62;I'm going to go ahead and close this topic; but if you have any other questions on this please feel free to create a new topic and reference this one. :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CW on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43598</link>
			<pubDate>Fri, 09 Dec 2011 22:12:40 +0000</pubDate>
			<dc:creator>CW</dc:creator>
			<guid isPermaLink="false">43598@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;YOU ROCK! Just tested your code and it works beautifully (as long as you have more questions than  moods). :) I think others will be happy, as well. I've seen several questions on this topic. Thanks again.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43591</link>
			<pubDate>Fri, 09 Dec 2011 19:46:20 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">43591@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi CW,&#60;/p&#62;
&#60;p&#62;Here is a working example:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/2993675&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/2993675&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Just paste it in your theme's functions.php and update as needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CW on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43552</link>
			<pubDate>Fri, 09 Dec 2011 12:18:53 +0000</pubDate>
			<dc:creator>CW</dc:creator>
			<guid isPermaLink="false">43552@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;David-&#60;/p&#62;
&#60;p&#62;Thanks! That solves my problem for the confirmation message, but still having a hard time wrapping my head around how to total the winning value. Any ideas? I'm interested in having 3 types of emotions. Each emotion would have a value, say - happy, mad, and sad. If I have 10 questions, I want to total the amount of times each emotion is selected and then display the winning emotion and message. Please help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43485</link>
			<pubDate>Thu, 08 Dec 2011 17:50:07 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">43485@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi CW,&#60;/p&#62;
&#60;p&#62;This hook is a good place to start:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_confirmation&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This hook passes the $entry which contains all of the selected values. You can loop through these values and tally up the totals, displaying the appropriate message depending on the outcome.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>CW on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-43445</link>
			<pubDate>Thu, 08 Dec 2011 12:54:26 +0000</pubDate>
			<dc:creator>CW</dc:creator>
			<guid isPermaLink="false">43445@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm also trying to do the same thing as &#38;lt;b&#38;gt;gwc_wd&#38;lt;/b&#38;gt;. I need to total the number of times a value is selected and then show a confirmation message based on the winning value. Make sense? Help anyone?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-34283</link>
			<pubDate>Fri, 02 Sep 2011 17:38:33 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34283@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, did you figure it out, or do you need additional help?  I couldn't tell from your last message if the issue was totally resolved.  I hope it is and we're on the same page now.  I see how you're using questions and the answers will use colors as values, which you will count.&#60;/p&#62;
&#60;p&#62;Will there possibly be an unknown number of values (so, maybe more than a fixed number of colors?  Maybe there are 6 colors, but tomorrow you find a new question and have to add purple or something?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gwc_wd on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-34279</link>
			<pubDate>Fri, 02 Sep 2011 17:21:21 +0000</pubDate>
			<dc:creator>gwc_wd</dc:creator>
			<guid isPermaLink="false">34279@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I just went over your code. &#60;a href=&#34;http://pastebin.com/uz7VX2NP&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/uz7VX2NP&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It is certainly getting me trying to learn to code because it feels like it's right there.&#60;/p&#62;
&#60;p&#62;I need operations to count each Case.&#60;br /&#62;
So would it be like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;switch($valuename) {
                case red: $redcount++
                case blue: $bluecount++&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have to tell you I am learning a lot from your help here and to others. For an old guy (me), that's a great thing, so thank you!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gwc_wd on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-34276</link>
			<pubDate>Fri, 02 Sep 2011 17:03:04 +0000</pubDate>
			<dc:creator>gwc_wd</dc:creator>
			<guid isPermaLink="false">34276@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You do see the difference in what I am trying to do precisely - the total number of times a particular answer is given.&#60;/p&#62;
&#60;p&#62;It was a simplified example, but does reflect almost exactly what I want.&#60;/p&#62;
&#60;p&#62;It is simplified in that my application would have five to ten characteristics rather than 3 colours. The characteristics are not directly selected, but a Value is assigned.&#60;/p&#62;
&#60;p&#62;So this would be what the form would show - multiple choice field with Values&#60;/p&#62;
&#60;p&#62;'In my kitchen I prefer&#60;br /&#62;
to feel like I'm on the ocean -- value blue&#60;br /&#62;
a clean no-nonsense environment -- value white&#60;br /&#62;
intensity and creativity -- value red'&#60;/p&#62;
&#60;p&#62;There might be many other questions with these red, white, red or other values.&#60;/p&#62;
&#60;p&#62;I want to total the number of times each value was selected.&#60;/p&#62;
&#60;p&#62;Is that a clearer explanation?&#60;/p&#62;
&#60;p&#62;The components really are arbitrary. It's just a paired list of statements and values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Counting responses"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/counting-responses#post-34255</link>
			<pubDate>Fri, 02 Sep 2011 15:27:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">34255@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;This post is probably closest to what you want.&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms#post-32566&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms#post-32566&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But there, I am just totaling up the correct answers (so I can use 0 as the value for a wrong answer, and 1 for the value of a correct answer, and just add up all 20 values to arrive at a total number of correct answers.)  Here, you need to do something slightly different.  You want to count the total number of times each answer is given (so, number of blue, number of green, number of red.)&#60;/p&#62;
&#60;p&#62;Do you have 10 questions, and each question can only have one of three possible colors, or was that a simplified example?  Please post exactly what you need to accomplish and I can work up an example for you.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
