Auto-populating a form field with a Google Maps link?

I’ve created a form that uses Google Maps to autocomplete a form field, as follows (using this great tutorial -

But now I want to capture the associated Google Maps URL in a separate field. I.e. given the input ‘San Francisco’ in the ‘Places’ field above, the subsequent field would automatically populate with the related URL, as follows:

Is this possible? I’m assuming this URL is already retreived through the Google Places API, it’s just a matter of identifying it and then adding it to the next field automatically.

(The reason I want to do this is because in my form results page, I want to be able to embed the URL as a hyperlink underneath the place name).

1 Like