<?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: Put calculated value in a field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/put-calculated-value-in-a-field</link>
		<description>Gravity Support Forums Topic: Put calculated value in a field</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 00:01:25 +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/put-calculated-value-in-a-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Put calculated value in a field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/put-calculated-value-in-a-field#post-49064</link>
			<pubDate>Fri, 10 Feb 2012 18:56:26 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">49064@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, thirdriver,&#60;/p&#62;
&#60;p&#62;I think what you want to do is instead use the gform_pre_submission hook (&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_pre_submission)&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_pre_submission)&#60;/a&#62;. In this hook you can actually modify the $_POST values. You could create a hidden field on your form. Loop through the data like you are doing and put your calculated value into the $_POST data for that field. This hook fires before the notification message is sent and the entry saved. You can either use the merge_tag for you hidden field in the email notification setup in the admin, or still use your confirmation hook to grab the data instead out of the field you populated in the gform_pre_submission hook.&#60;/p&#62;
&#60;p&#62;Take a look at that hook and let me know if you have any questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thirdriver on "Put calculated value in a field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/put-calculated-value-in-a-field#post-48322</link>
			<pubDate>Fri, 03 Feb 2012 19:24:20 +0000</pubDate>
			<dc:creator>thirdriver</dc:creator>
			<guid isPermaLink="false">48322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;webdesignsalemoregon.com/surveytest&#60;/p&#62;
&#60;p&#62;When you go through this test, it will add up whether you are a Self, Other, or Socially aware person.&#60;br /&#62;
Is there a way to get this result (currently displayed with &#34;return $confirmation&#34;) to populate a Custom Field that's hidden from the user?&#60;/p&#62;
&#60;p&#62;currently, I've got this&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/3312298&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3312298&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;at the bottom of my Functions.PHP file
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
