<?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: How do you dynamically populate a form field with meta data from a custom field?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field</link>
		<description>Gravity Support Forums Topic: How do you dynamically populate a form field with meta data from a custom field?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 12:12:39 +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/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9973</link>
			<pubDate>Thu, 16 Sep 2010 15:13:07 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9973@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have corrected the code in your theme, the post variable had to be declared as global.  I updated your functions.php file and it's working now.  Here is what the revised code looked like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_service_city&#38;quot;, &#38;quot;populate_service_city&#38;quot;);
function populate_service_city(){
  global $post;
  $service_city = get_post_meta($post-&#38;gt;ID, company_description, true);
  return $service_city;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carson on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9933</link>
			<pubDate>Wed, 15 Sep 2010 18:25:19 +0000</pubDate>
			<dc:creator>Carson</dc:creator>
			<guid isPermaLink="false">9933@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I emailed you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9932</link>
			<pubDate>Wed, 15 Sep 2010 18:01:01 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9932@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll need more details on what you are trying to do.  Which form is it? Which hidden field? What is the custom field key and which posts already exist containing that custom field key? Be as detailed as possible.  &#60;/p&#62;
&#60;p&#62;I've logged in but can't determine what you are trying to do or with what field so I need some more details to go on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carson on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9931</link>
			<pubDate>Wed, 15 Sep 2010 17:53:05 +0000</pubDate>
			<dc:creator>Carson</dc:creator>
			<guid isPermaLink="false">9931@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;yup, you're login still works
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9930</link>
			<pubDate>Wed, 15 Sep 2010 17:49:26 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9930@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Without looking at your site and seeing your form setup and custom field setup, there is no way to tell what is wrong.  The Syntax looks correct. &#60;/p&#62;
&#60;p&#62;Is my login for your site still active? If so I can take a look and see how things are setup.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carson on "How do you dynamically populate a form field with meta data from a custom field?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/how-do-you-dynamically-populate-a-form-field-with-meta-data-from-a-custom-field#post-9929</link>
			<pubDate>Wed, 15 Sep 2010 17:20:22 +0000</pubDate>
			<dc:creator>Carson</dc:creator>
			<guid isPermaLink="false">9929@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I tried adding this to my theme functions...but it did not work:&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_field_value_hidden_field&#34;, &#34;populate_hidden_field&#34;);&#60;/p&#62;
&#60;p&#62;function populate_hidden_field(){&#60;/p&#62;
&#60;p&#62;  return get_post_meta($post-&#38;gt;ID, custom_field_key, true);&#60;/p&#62;
&#60;p&#62;}
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
