<?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 custom post field plugin</title>
		<link>https://legacy.forums.gravityhelp.com/topic/update-custom-post-field-plugin</link>
		<description>Gravity Support Forums Topic: update custom post field plugin</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:55:48 +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-custom-post-field-plugin" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "update custom post field plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-custom-post-field-plugin#post-81065</link>
			<pubDate>Mon, 15 Oct 2012 07:16:58 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">81065@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You could use the gform_pre_submission filter to copy the value from one field to another, after the form is submitted.&#60;/p&#62;
&#60;p&#62;&#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;&#60;/p&#62;
&#60;p&#62;Your code would look like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;#39;gform_pre_submission&#38;#39;, &#38;#39;copy_field_value&#38;#39;);
function copy_field_value($form) {
    // copy the value which was submitted in
    // field 10 to hidden field 14
    $_POST[&#38;#39;input_14&#38;#39;] = rgpost(&#38;#39;input_10&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, your request does not mention a custom post field, but your title does.  Can you let us know if this accomplishes what you need to do?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>lwrkrol on "update custom post field plugin"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-custom-post-field-plugin#post-81019</link>
			<pubDate>Mon, 15 Oct 2012 04:33:13 +0000</pubDate>
			<dc:creator>lwrkrol</dc:creator>
			<guid isPermaLink="false">81019@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I would like the data in a form field to be put in a hidden field on the same form when a user hits the submit button. I am using the following code in my functions.php to set a relationship between 2 posts which basically is what I want. How should I use this code when I want two form fields to be the same when the form is submitted?&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;do_shortcode(&#38;quot;[gravityforms id=2 field_values=&#38;#39;ItemID={$post-&#38;gt;ID}&#38;#39; ajax=true]&#38;quot;);
add_action(&#38;quot;gform_after_submission_2&#38;quot;, &#38;quot;update_review_data&#38;quot;, 10, 2);
 function update_review_data($entry){
 update_post_meta($entry[&#38;quot;post_id&#38;quot;], &#38;quot;_wpcf_belongs_winkel_id&#38;quot;, $entry[1]);
 }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
