Link 'Address Input Element' to save URL of location rather than text of address.

I have created a form, which is functioning really well apart from one problem. I have created an address input, which saves to my data base fine - but it saves as text only. I want to save the URL of this location in Google Maps.

I have read that " Address Inputs can only connect with the Address field type" - but it there some way around this? I want to save the web URL for this location on Google Maps.

The reason being, user’s are submitting an image, along with their address. I want to automate the uploading of these images to a page (this is working), but I want to be able to click on an image and then be taken to the location in which it was taken (submitted by the user).

Is there a way to achieve this?

Thanks in advance! :slight_smile:

Hi,
you can try to do the following:

  • Create 3 additional fields in the database: latitude, longitude, and description.

  • When submitting the location, populate with the above fields.

  • Create a click event for the image that will either open the page with the maps or if the map is on the same page set it’s location from the database right away (to get the need fields you can query the database).

Thanks Aleks, I will try to give this a go! Will the ‘click event’ work if each individual image is contained in one gallery?