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.
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.
I'm using this to populate the fields, which works fine:
add_filter("gform_field_value_street", "populate_street");
function populate_street($value){
return "123 Fake St";
}
add_filter("gform_field_value_city", "populate_city");
function populate_city($value){
return "Anytown";
}
add_filter("gform_field_value_country", "populate_country");
function populate_country($value){
return "US";
}
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.