<?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: Calculate Value for Multiple Choice</title>
		<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice</link>
		<description>Gravity Support Forums Topic: Calculate Value for Multiple Choice</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:57:07 +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/calculate-value-for-multiple-choice" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Calculate Value for Multiple Choice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice#post-13829</link>
			<pubDate>Thu, 02 Dec 2010 17:51:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">13829@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I put together a test here:&#60;br /&#62;
&#60;a href=&#34;http://guitar.chrishajer.com/2010/12/02/sentiment-quiz/&#34; rel=&#34;nofollow&#34;&#62;http://guitar.chrishajer.com/2010/12/02/sentiment-quiz/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is the code to put into your theme's functions.php:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/1342810&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1342810&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You will need to look at the source of the page with your form embedded to determine the field numbers.  I put the 15 fields consecutively, and in my form, there are no other fields. So, my starting field is 1 and ending field is 15.  If you have any fields before the 15 yes/no questions, then you will have a different starting and ending field number.  Adjust those on line 4 and line 5.&#60;/p&#62;
&#60;p&#62;Also, to ensure this action runs only on the one form, you should change the form number (7 in my example) on line 14 to your actual form number.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;gform_post_submission_7&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Change that 7 to your form number.&#60;/p&#62;
&#60;p&#62;You can change the text that is echo'd on line 11.  I included the entry number just to make sure I was doing it correctly.&#60;/p&#62;
&#60;p&#62;I'm not crazy about how the total number of &#34;yes&#34; entries and the confirmation are displayed on the same page, but I think this should get you headed in the right direction.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Calculate Value for Multiple Choice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice#post-13814</link>
			<pubDate>Thu, 02 Dec 2010 15:08:11 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">13814@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;After rereading and trying to implement this, I realize that the other solution posted by David Smith added up a single value for one field on one form, over multiple submissions (for example, &#34;how many guests will be attending&#34; and then one person submits 7, another submits 4, and you need a total for a party.  David's solution answered that question.  The sum for entries in that field for one form is 11, in this case.)&#60;/p&#62;
&#60;p&#62;So, your application will require a different approach.  Maybe someone else can post a suggestion.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sasharr on "Calculate Value for Multiple Choice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice#post-13809</link>
			<pubDate>Thu, 02 Dec 2010 14:11:42 +0000</pubDate>
			<dc:creator>sasharr</dc:creator>
			<guid isPermaLink="false">13809@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the response, but I don't know what the exact code should look like to make this happen.  And can it even be posted on a page so that it shows up after the form is submitted?&#60;/p&#62;
&#60;p&#62;If not on a page, where do I post that code?&#60;/p&#62;
&#60;p&#62;I have 15 questions for this quiz.&#60;/p&#62;
&#60;p&#62;Thanks~
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Calculate Value for Multiple Choice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice#post-13790</link>
			<pubDate>Thu, 02 Dec 2010 12:33:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">13790@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Maybe this approach could be adapted?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forum.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions&#34; rel=&#34;nofollow&#34;&#62;http://forum.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You'd have to do an additional step to assign values of 1 or 0 based on checked or unchecked (or maybe just count the number of checked boxes instead of summing the actual values), but the rest would be the same.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sasharr on "Calculate Value for Multiple Choice"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-value-for-multiple-choice#post-13754</link>
			<pubDate>Wed, 01 Dec 2010 19:06:10 +0000</pubDate>
			<dc:creator>sasharr</dc:creator>
			<guid isPermaLink="false">13754@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have a form that has 15 questions and if the user answers yes, the value is 1, if they answer no, the value is 0.  I would like the form to sum up all the 1's and give the user their final calculated number after they submit the form, on the confirmation page.&#60;/p&#62;
&#60;p&#62;How can I do this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
