<?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: Building Quiz with GF -- Sum Checkbox Values?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/building-quiz-with-gf-sum-checkbox-values</link>
		<description>Gravity Support Forums Topic: Building Quiz with GF -- Sum Checkbox Values?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:28:06 +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/building-quiz-with-gf-sum-checkbox-values" rel="self" type="application/rss+xml" />

		<item>
			<title>Rob Harrell on "Building Quiz with GF -- Sum Checkbox Values?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/building-quiz-with-gf-sum-checkbox-values#post-63446</link>
			<pubDate>Sun, 24 Jun 2012 08:02:48 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">63446@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can actually do this now out of the box with Gravity Forms number and product field calculation types. Check out this post:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/basic-form-calculation#post-62546&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/basic-form-calculation#post-62546&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>hyperhead on "Building Quiz with GF -- Sum Checkbox Values?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/building-quiz-with-gf-sum-checkbox-values#post-63434</link>
			<pubDate>Sun, 24 Jun 2012 00:29:54 +0000</pubDate>
			<dc:creator>hyperhead</dc:creator>
			<guid isPermaLink="false">63434@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Trying to build a GF quiz following your useful samples shown in &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/mathematics-to-gravity-forms&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That works beautifully for radio-button fields. I hit a wall, however, trying to incorporate checkbox fields with associated values. Here's a screenshot:&#60;br /&#62;
&#60;a href=&#34;https://skitch.com/rossteasley/en2pk/temp122314&#34; rel=&#34;nofollow&#34;&#62;https://skitch.com/rossteasley/en2pk/temp122314&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Trying to add up correct answers, the &#34;score&#34; field should increment by 1 for each choice checked within the checkbox field-id (with a value of 1). Currently, however, the &#34;score&#34; field is only incrementing by 1 for each field-id regardless of how many choices are checked by the user. &#60;/p&#62;
&#60;p&#62;For example, using the screen shot above, if the user checked all three choices with a value of 1, the &#34;score&#34; field still only increments by 1, when we need it to increment by 3 for this field-id before moving on the next field.&#60;/p&#62;
&#60;p&#62;Here is the current code in functions.php:&#60;br /&#62;
&#60;a href=&#34;https://gist.github.com/2981540&#34; rel=&#34;nofollow&#34;&#62;https://gist.github.com/2981540&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Is it possible to have &#34;score&#34; step through each choice within each field to sum the values, then move on to the next field and keep adding to the &#34;score&#34; value until the quiz is complete?&#60;/p&#62;
&#60;p&#62;This quiz has 18 questions (18 field-ids). Most are checkboxes, but some are radio (yes/no) or (true/false). Here's a dev version of the quiz to look at:&#60;br /&#62;
&#60;a href=&#34;http://homexblogs.staging.wpengine.com/sample-page/&#34; rel=&#34;nofollow&#34;&#62;http://homexblogs.staging.wpengine.com/sample-page/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for any advice anyone has!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
