- Issue created by @2gendevs
Hello. We have a view that exposes a form with a Geocoder address input filter using the Google Geocoding API. All default values.
We are using this exposed form in two blocks. One in the header and one in the content area on a specific page.
Our problem is when the form is included on the page twice, the second instance of the filter doesn't work.
The first instance (or if there is only 1 instance) of the form works as expected. You enter an address into the search box and it auto completes using Google API. Selecting a result then populates the coordinates form with the lat/long from the location chosen. Submitting the form then filters as you'd expect.
However, on the page that has two instances of the same form and filter. Only the first instance of the form and filter works as described above. The second instance doesn't. Entering a search term into the box produces results, but selecting a result does not populate the second coordinates form. Therefor submitting the form doesn't produce filtered results (since the lat/lang are blank). Selecting a search result does not populate the first instance of the coordinates form either.
On the page that has two instances of the form, removing the first instance, so now there is only the second instance makes everything work again.
How can we get this working with both form filters?
Thanks.
Geolocation module 8.x-3.1
Active
3.1
Geolocation Field / Backend