<?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: Mailchimp pre-populating content into address fields not working</title>
		<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working</link>
		<description>Gravity Support Forums Topic: Mailchimp pre-populating content into address fields not working</description>
		<language>en-US</language>
		<pubDate>Sat, 25 Apr 2026 01:30:24 +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/mailchimp-pre-populating-content-into-address-fields-not-working" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-25122</link>
			<pubDate>Mon, 09 May 2011 16:35:39 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">25122@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;There are a couple issues with what you are trying to do.&#60;/p&#62;
&#60;p&#62;First you are populating the country field with just &#34;US&#34; instead of &#34;UNITED STATES&#34; which means &#34;United States&#34; isn't getting pre-selected because &#34;US&#34; isn't an existing value.  So you need to set the country to &#34;United States&#34; and not &#34;US&#34;.&#60;/p&#62;
&#60;p&#62;Your second issue is you aren't populating the state field.  The state field is required by MailChimp.  If you don't pass it, the Address field won't get populated.  MailChimp's Address field will not populate unless all the required fields are passed to it.  If they aren't, MailChimp ignores it.&#60;/p&#62;
&#60;p&#62;So here is what you need to use:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_street&#38;quot;, &#38;quot;populate_street&#38;quot;);
function populate_street($value){
    return &#38;quot;123 Fake St&#38;quot;;
}

add_filter(&#38;quot;gform_field_value_city&#38;quot;, &#38;quot;populate_city&#38;quot;);
function populate_city($value){
    return &#38;quot;Anytown&#38;quot;;
}

add_filter(&#38;quot;gform_field_value_country&#38;quot;, &#38;quot;populate_country&#38;quot;);
function populate_country($value){
    return &#38;quot;United States&#38;quot;;
}

add_filter(&#38;quot;gform_field_value_state&#38;quot;, &#38;quot;populate_state&#38;quot;);
function populate_state($value){
    return &#38;quot;VA&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can change the state value to whatever you want.  I used VA just because we are in Virginia.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chezolio on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-24527</link>
			<pubDate>Fri, 29 Apr 2011 13:35:15 +0000</pubDate>
			<dc:creator>chezolio</dc:creator>
			<guid isPermaLink="false">24527@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, the pre-populated data does show up in the entries stored in the database, as well as the zip code entered. It just doesn't get stored in Mailchimp. It's just a test mailchimp account at this point so I'll send you the login details and the wp admin login details too.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-24498</link>
			<pubDate>Fri, 29 Apr 2011 11:52:29 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">24498@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;When you view the entries for the forms you submitted pre-populating that data, is your address information there?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chezolio on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-24472</link>
			<pubDate>Thu, 28 Apr 2011 19:52:44 +0000</pubDate>
			<dc:creator>chezolio</dc:creator>
			<guid isPermaLink="false">24472@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have. Mailchimp only accepts address info as an array, so individual fields are problematic.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-24457</link>
			<pubDate>Thu, 28 Apr 2011 17:46:06 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">24457@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Have you tried using a Single Text field for the zip code input instead of the Address field and testing to see if that works?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>chezolio on "Mailchimp pre-populating content into address fields not working"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/mailchimp-pre-populating-content-into-address-fields-not-working#post-24437</link>
			<pubDate>Thu, 28 Apr 2011 15:14:38 +0000</pubDate>
			<dc:creator>chezolio</dc:creator>
			<guid isPermaLink="false">24437@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey guys, working on a site for a band that wants to segment their mailing list subscribers by region for tour specific campaigns. Thing is they don't want to ask for full addresses, just zip code. &#60;/p&#62;
&#60;p&#62;What I am trying to do is hide all of the address fields except zip code, populate the hidden fields with php and send it all to Mailchimp for regional list segmenting.&#60;/p&#62;
&#60;p&#62;I'm using this to populate the fields, which works fine:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_field_value_street&#38;quot;, &#38;quot;populate_street&#38;quot;);
function populate_street($value){
    return &#38;quot;123 Fake St&#38;quot;;
}

add_filter(&#38;quot;gform_field_value_city&#38;quot;, &#38;quot;populate_city&#38;quot;);
function populate_city($value){
    return &#38;quot;Anytown&#38;quot;;
}

add_filter(&#38;quot;gform_field_value_country&#38;quot;, &#38;quot;populate_country&#38;quot;);
function populate_country($value){
    return &#38;quot;US&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Problem is, when I send it off, nothing shows up in the Mailchimp user's address. It does show up however if I remove the code above and enter everything in the address field manually.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
