<?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 numbers from number field in form submissions?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions</link>
		<description>Gravity Support Forums Topic: calculate numbers from number field in form submissions?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 07:14:38 +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-numbers-from-number-field-in-form-submissions" rel="self" type="application/rss+xml" />

		<item>
			<title>agelfand on "calculate numbers from number field in form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions#post-13672</link>
			<pubDate>Tue, 30 Nov 2010 17:08:57 +0000</pubDate>
			<dc:creator>agelfand</dc:creator>
			<guid isPermaLink="false">13672@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Works like a charm! Thanks so much for the quick response.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "calculate numbers from number field in form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions#post-13665</link>
			<pubDate>Tue, 30 Nov 2010 16:43:47 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">13665@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Agelfand,&#60;/p&#62;
&#60;p&#62;Here is a quick little function that will let you do this for most GF fields (you'll run into issues if trying to access fields with floats for IDs):&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1336369&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1336369&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The first parameter is the form id of the form the field is contained in. The second parameter is the field id of the field you want to calculate the total for. You can output this total like so:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;echo gf_get_field_sum(1,4)&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>agelfand on "calculate numbers from number field in form submissions?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/calculate-numbers-from-number-field-in-form-submissions#post-13642</link>
			<pubDate>Tue, 30 Nov 2010 13:53:21 +0000</pubDate>
			<dc:creator>agelfand</dc:creator>
			<guid isPermaLink="false">13642@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I want to have a form that includes a number field. Then, I want to be able to loop through all submissions to this form, grab the value of the number field in each submission, add them up, and echo the total somewhere on my site. &#60;/p&#62;
&#60;p&#62;So if the form was submitted twice, and the first time someone put a 4 in the number field, and the second time someone put a 7 in the number field, I would want to echo &#34;11&#34;.&#60;/p&#62;
&#60;p&#62;I'm afraid I do not have a web page to reference - this is a feature a client requested recently, and I haven't been able to find the answer on the forums so far. Any advice?  Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
