I want to add Google Autocomplete Places feature on my form. I saw the tutorial https://www.wix.com/code/home/forum/advanced-tips-tricks/how-to-use-google-maps-services-in-wix-code
But it works on repeater, I do not have any repeater in my form. Can anyone suggest how to achieve this. I have input fields for Address City State and Zipcode in my form.
What is that you want to accomplish? Do you want autocomplete as in the post you refer to or do you want to loop it up in another way?
Hi Vinay,
There are two repeaters in the example.
One is for the autocomplete/suggestions. Without it the display of the autocomplete won’t work.
The other repeater is is only used as an example of how to display the details of the location. If you need, just save the information to the fields that you want.
Yisrael
I have a form with input fields for Address City State and Zipcode. I want if anyone click input address google autocomplete get opens up and city state and zipcode get fills automatically from selected place.
I do not have any repeater in my form. Can’t it work without repeater and just on input focus or change?
The example provides suggestions to a partially typed location. Then when selected from the dropdown list (repeater) it is able to fill in the required fields. It seems like your usage case is different. You can perhaps use parts of the example to suit your needs.
Yisrael
For anybody who’s interested in this feature: the Address Input Editor Element has been released .
Hi, Ive been trying to use the address input element, I manage to get the autofill options with the google api connected, but when I click on them it does not populate the field. Any suggestions?
Hi @maritza ,
If I had to guess the cause of the problem from what you’re describing, it would be that you have the Places API enabled, but not the Geocoding API.
This is because only the Places API is used to populate the list of suggestions, but when you select a specific suggestion the Geocoding API is also used to obtain further information about the address (such as its lat/lon coordinates).
Please try to follow the instructions in this article and let me know if once you enable the Geocoding API the issue goes away.
HTH
The autocomplete shows the adress I’m looking for, but after selecting my option, it only displays part of the address ine field and also saves just that partial address in my collection. Does anyone else face this or have a solution for this?
I have the same problem as mailtomeskr . Someone please help. The customer care at wix is unable to help me out with this
@crumbsgranolaindia Please report this bug following the process here . The issue will be sent to one of our Velo product support specialists to review.