<?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: Dynamic Population: Problem with multiple &#34;filters&#34;</title>
		<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-problem-with-multiple-filters</link>
		<description>Gravity Support Forums Topic: Dynamic Population: Problem with multiple &quot;filters&quot;</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:30:03 +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/dynamic-population-problem-with-multiple-filters" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Dynamic Population: Problem with multiple &#34;filters&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-problem-with-multiple-filters#post-43725</link>
			<pubDate>Mon, 12 Dec 2011 01:25:08 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">43725@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for the update.  And thanks for posting your code.  I'm sure it will help someone.&#60;/p&#62;
&#60;p&#62;Please let us know if you need additional assistance.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sidjags on "Dynamic Population: Problem with multiple &#34;filters&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-problem-with-multiple-filters#post-43699</link>
			<pubDate>Sun, 11 Dec 2011 15:17:57 +0000</pubDate>
			<dc:creator>sidjags</dc:creator>
			<guid isPermaLink="false">43699@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;never mind... there seemed to be a problem with a &#34;typo&#34; or rather wrong name... in one of the lines... this works now:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_field_value_city&#38;#39;, &#38;#39;populate_city&#38;#39;);
function populate_city($value){
    global $post;
	$city = get_post_meta($post-&#38;gt;ID, &#38;quot;city&#38;quot;, true);
    return $city;
}

add_filter(&#38;#39;gform_field_value_country&#38;#39;, &#38;#39;populate_country&#38;#39;);
function populate_country($value){
    global $post;
	$country = get_post_meta($post-&#38;gt;ID, &#38;quot;country&#38;quot;, true);
    return $country;
}

add_filter(&#38;#39;gform_field_value_region&#38;#39;, &#38;#39;populate_region&#38;#39;);
function populate_region($value){
    global $post;
	$region = get_post_meta($post-&#38;gt;ID, &#38;quot;region&#38;quot;, true);
    return $region;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;all 3 fields get populated the right way... thank you though... and i'll be back if theres something else i get stuck with...&#60;/p&#62;
&#60;p&#62;sid
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sidjags on "Dynamic Population: Problem with multiple &#34;filters&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/dynamic-population-problem-with-multiple-filters#post-43698</link>
			<pubDate>Sun, 11 Dec 2011 15:04:22 +0000</pubDate>
			<dc:creator>sidjags</dc:creator>
			<guid isPermaLink="false">43698@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey there... i'd be very grateful if you could point me in the right direction here:&#60;/p&#62;
&#60;p&#62;i've followed the instructions on how to dynamically populate a field in the form by using a query (in functions.php)... and it works fine... I have this form on a post with certain &#34;custom fields/meta values&#34;... and am populating the form with the same... so, i do it for one of the fields like so...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_field_value_city&#38;#39;, &#38;#39;populate_city&#38;#39;);
function populate_city($value){
    global $post;
	$city = get_post_meta($post-&#38;gt;ID, &#38;quot;city&#38;quot;, true);
    return $city;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;where my parameter name is &#34;city&#34;... and also my custom field name is &#34;city&#34; too... and it works... now i repeat the same thing two more times to get two more custom field values...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_filter(&#38;#39;gform_field_value_country&#38;#39;, &#38;#39;populate_country&#38;#39;);
function populate_city($value){
    global $post;
	$country = get_post_meta($post-&#38;gt;ID, &#38;quot;country&#38;quot;, true);
    return $country;
}

add_filter(&#38;#39;gform_field_value_region&#38;#39;, &#38;#39;populate_region&#38;#39;);
function populate_region($value){
    global $post;
	$region = get_post_meta($post-&#38;gt;ID, &#38;quot;region&#38;quot;, true);
    return $region;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;so... that's three in all... &#34;city&#34;, &#34;country&#34; and &#34;region&#34;.... and when i do this... it ives me a blank screen... if i remove two of the three... and leave only one.. anyone... it works... but doesnt work for more than one...&#60;/p&#62;
&#60;p&#62;can you please help me out here...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
