http://www.gravityhelp.com/documentation/page/Gform_address_display_format
(Street, Street2, City, Sate, Zip Code, Country)
should be:
(Street, Street2, City, State, Zip Code, Country)
Sate > State (2 occurrences of this page)
http://www.gravityhelp.com/documentation/page/Gform_address_display_format
(Street, Street2, City, Sate, Zip Code, Country)
should be:
(Street, Street2, City, State, Zip Code, Country)
Sate > State (2 occurrences of this page)
Also, this filter would be more flexible if you could specify the precise order (and inclusion) of address fields:
add_filter("gform_address_display_format", "address_format");
function address_format($format){
return array("street", "street2", "city", "state", "zip_code", "country");
}
I fixed the typos in the documentation. Thank you for pointing those out. I'll flag this as a feature request regarding your second post. Thank you for the suggestion.