[Google Places] Google Places Address

Forge Component
(6)
Published on 2017-04-03 by Ouen Worth
6 votes
Published on 2017-04-03 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

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.