I got ACF form with Google Maps field. I retrieve data from a form via email.
ACf extended uses a placeholders for placing in an email. You can get the field value with
{field:map_field}
Which returns the address, i.e. Unnamed Road, 72-100 Goleniów, Polska or the exact adress, when it's named on map.
or
{field:defibrylator_lokalizacja_mapa:false} to get unformatted data as JSON:
{
"address": "Unnamed Road, 72-100 Goleniów, Polska",
"lat": 53.552203584122466,
"lng": 14.82477923813573,
"zoom": 15,
"place_id": "ChIJgwNS3SifAEcRFlyLx4z2hE4",
"street_name": "Unnamed Road",
"city": "Goleniów",
"state": "Zachodniopomorskie",
"post_code": "72-100",
"country": "Polska",
"country_short": "PL"
}
I want to get only lat/lan values. Tried almost the syntax from:
https://www.acf-extended.com/features/modules/dynamic-forms/form-cheatsheet
and can't get this key only.
Hello Juan, how are you making a great progress? I didn't even get to that, I put the sheetcode {field:map_field} but it came out worthless, will you have more details please if it's not a bother?