<?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: Update A Hidden Field From Post_Submission Hook</title>
		<link>https://legacy.forums.gravityhelp.com/topic/update-a-hidden-field-from-post_submission-hook</link>
		<description>Gravity Support Forums Topic: Update A Hidden Field From Post_Submission Hook</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 12:06:30 +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/update-a-hidden-field-from-post_submission-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "Update A Hidden Field From Post_Submission Hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-hidden-field-from-post_submission-hook#post-3140</link>
			<pubDate>Thu, 04 Feb 2010 11:33:08 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">3140@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Given your scenario, I am not sure there is any other way to do this. You will have to update the tables directly. There is a little error on your sql statement, try the following and it should work:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$wpdb-&#38;gt;query(&#38;quot;UPDATE wp_rg_lead_detail SET value = &#38;#39;New Value&#38;#39; WHERE lead_id = 30 AND field_number = 81&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;As for the credit card number, I wouldn't even store it at your side at all. I would truncate them to the last for on the post_submission_hook instead of doing it after you receive the confirmation from paypal. &#60;/p&#62;
&#60;p&#62;Good Luck!&#60;br /&#62;
Alex.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>AtlantaWebDesignGA on "Update A Hidden Field From Post_Submission Hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-hidden-field-from-post_submission-hook#post-3138</link>
			<pubDate>Thu, 04 Feb 2010 09:23:20 +0000</pubDate>
			<dc:creator>AtlantaWebDesignGA</dc:creator>
			<guid isPermaLink="false">3138@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Good question. I'm using the form to collect customer info including credit card billing that is sent to Authorize.net for payment processing. When the processing transaction result is returned by them via XML message, they send back the customer's ID they generated. I'm writing the new customer ID back into the Gravity Forms database. I also need to write the payment status (OK, declined) back into GF plus I want to overwrite the customer's credit card # in the GF form database so only the last 4 digits remain. (I'll let Authorize store that risky info so I don't have to implement lots of security on my end.) &#60;/p&#62;
&#60;p&#62;Given that workflow what do you recommend?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Update A Hidden Field From Post_Submission Hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-hidden-field-from-post_submission-hook#post-3135</link>
			<pubDate>Wed, 03 Feb 2010 22:00:08 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">3135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Out of curiosity and before we can come up with a good solution for this, is there any reason why you are generating the ID *afteR* the post is submitted rather than during the submission process itself?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>AtlantaWebDesignGA on "Update A Hidden Field From Post_Submission Hook"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-hidden-field-from-post_submission-hook#post-3129</link>
			<pubDate>Wed, 03 Feb 2010 18:29:40 +0000</pubDate>
			<dc:creator>AtlantaWebDesignGA</dc:creator>
			<guid isPermaLink="false">3129@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Need to update a hidden field in a form with an ID number after the form has just been submitted. The ID is calculated by PHP running in a gform_post_submission hook within the theme's functions.php file.&#60;/p&#62;
&#60;p&#62;I thought about writing directly into the GF database like this:&#60;/p&#62;
&#60;p&#62;$wpdb-&#38;gt;query(&#34;UPDATE $wpdb-&#38;gt;wp_rg_lead_detail SET value = 'New Value' WHERE lead_id = 30 AND field_number = 81&#34;);&#60;/p&#62;
&#60;p&#62;However, that doesn't seem to update. No error given, just no update happens.&#60;/p&#62;
&#60;p&#62;Is there a smarter way to do this by calling a function already in the Gravity Forms library?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
