84
Views
1
Comments
[Google Places] Google Places Address
Question
google-places
Web icon
Forge asset by Ouen Worth

Hi All,

I am using the Google Places component which is working great! However, I'm struggling with autocompleting my form. I want the chosen address to populate the address fields I have in my form (i.e. address line 1, address line 2, postcode, etc.). I can see that there is a structure attribute call 'formatted_address', but I can't find a structure attribute for the address components individually.

Could someone please point me in the right direction?

Thanks,

Asha

UserImage.jpg
Naren

Hello Asha

Here you go!!
1)Create a AddressComponents structure as below.

2)Use this structure type and create a local variable
3)On search complete,Assign these address components to your fields in the form.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.