<?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: gform_update_meta doesn&#039;t work as expected</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected</link>
		<description>Gravity Support Forums Topic: gform_update_meta doesn&#039;t work as expected</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 23:49:08 +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/gform_update_meta-doesnt-work-as-expected" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34858</link>
			<pubDate>Thu, 08 Sep 2011 16:17:31 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">34858@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes that is correct, you would need to use those 2 hooks to encrypt and decrypt the field values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nwinternetmarketing on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34844</link>
			<pubDate>Thu, 08 Sep 2011 15:05:00 +0000</pubDate>
			<dc:creator>nwinternetmarketing</dc:creator>
			<guid isPermaLink="false">34844@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/encrypt-data-or-prevent-its-being-stored-to-db&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/encrypt-data-or-prevent-its-being-stored-to-db&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nwinternetmarketing on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34842</link>
			<pubDate>Thu, 08 Sep 2011 14:47:04 +0000</pubDate>
			<dc:creator>nwinternetmarketing</dc:creator>
			<guid isPermaLink="false">34842@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like I need to be using:   gform_save_field_value  / gform_get_field_value
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nwinternetmarketing on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34827</link>
			<pubDate>Thu, 08 Sep 2011 13:06:09 +0000</pubDate>
			<dc:creator>nwinternetmarketing</dc:creator>
			<guid isPermaLink="false">34827@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to update the actual entry, not a post or page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>craigedmonds on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34791</link>
			<pubDate>Thu, 08 Sep 2011 05:20:27 +0000</pubDate>
			<dc:creator>craigedmonds</dc:creator>
			<guid isPermaLink="false">34791@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;why dont you use the wordpress update_post_meta?&#60;/p&#62;
&#60;p&#62;I have just done it using gform_post_submission.&#60;/p&#62;
&#60;p&#62;You grab the form fields from the array and then use update_post_meta($newpostid, 'fieldname', $thedata);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nwinternetmarketing on "gform_update_meta doesn&#039;t work as expected"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_update_meta-doesnt-work-as-expected#post-34790</link>
			<pubDate>Thu, 08 Sep 2011 05:08:07 +0000</pubDate>
			<dc:creator>nwinternetmarketing</dc:creator>
			<guid isPermaLink="false">34790@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Scenario:  User inputs Social Security Number via form.  Using gform_post_submission hook, I am trying to encrypt the entry's SSN (which is $entry['5']).&#60;/p&#62;
&#60;p&#62;Code (most of the beef has been removed):&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;#####################################
function encryptStringArray($stringArray, $entryID, $key = &#38;quot;somecoolkey&#38;quot;) {
	$s = DOSOMEENCRYPTIONHERE($stringArray, $key);
	gform_update_meta($entryID, $entry[&#38;#39;5&#38;#39;], $s);
	return $s;
}

add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;hNotify&#38;quot;, 10, 2);
function hNotify($entry, $form){
  $entryID = $entry[&#38;quot;id&#38;quot;];
  $ssn = encryptStringArray($entry[&#38;quot;5&#38;quot;], $entry);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Based on the [ever-lacking] documentation, it appears like I should use this function: gform_update_meta&#60;/p&#62;
&#60;p&#62;However, the examples: #1 SUCK (in explanation, implementation, and as an example... fail), #2 don't work (the entry goes through, PHP error prevents full functionalities).&#60;/p&#62;
&#60;p&#62;So can anyone please shed some light on how one goes about updating an entry after it has been pushed to the database?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_update_meta&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_update_meta&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
