Forum: Gravity Geolocation

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Gravity Geolocation premium extension please open a new premium support ticket.

[Resolved]No autocomple

Forums Gravity Geolocation No autocomple

Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #50044
    Chris Homan
    Member

    Maybe my expectations are wrong but I have an issue with autocomplete. I created a simple form (see private content) and it works well when I drag the marker to a spot but does nothing with the address field. The fields get populated with an address when dragging the marker but when entering an address the map doesn’t change and no autocomplete suggestions are made. I tried many different address field configurations and the same thing happens. I also tried it with different custom field settings and enabling/disabling pretty much any checkbox on the form. To be hones, I’m really getting frustrated by this all…

    Private Content Hidden
    #50055

    Hello Chris and thank you for the purchase.

    There are two JavaScript errors generated on that page. One of the errors indicates that there are multiple called made to Google Maps API.

    Is there another mapping plugins installed on your site? If so please deactivate it and try the form again to see if it then works. If it does work please let me know which plugin that was.

    Thanks

    #50061
    Chris Homan
    Member

    Hi Eyal,

    I had seen that too. I tried different configurations to check if this was the problem
    1) Dequeue your API script (handler: google-maps, correct?)
    2) Dequeue the other script
    3) Dequeue all geo scripts and enqueued a new Google Maps API script
    4) Deactivate the other plugin

    Neither of these options solved the problem.

    #50062

    Thank you.
    Can you please deactivate the other plugin only and let me know once you do so I could take look at the page again?

    #50063
    Chris Homan
    Member

    Done, you can have a look now.

    #50065

    Thanks again.
    I see where the issue is. Can you make a small change in the JavaScript file until I release an official fix? I will explain you where and what to change.

    #50066
    Chris Homan
    Member

    That would be great, thanks, I can edit it right now

    #50068

    Great.
    1) Open the file gravityforms-geolocation/assets/js/gfg.js
    and copy the entire content.
    2) Open the file gravityforms-geolocation/assets/js/gfg.min.js and replace the content of this file with the content from the first file.
    3) In gfg.min.js remove the lines 392 – 410 ( might not be the exact lines for you but very close ) which should be:

    4) Save the file and test the form.

    #50069
    Chris Homan
    Member

    Done, tried it but am getting two error messages:
    1) Uncaught ReferenceError: gform is not defined
    2) Google Maps API warning: InvalidKey: https://developers.google.com/maps/documentation/javascript/error-messages

    I have no API key defined at the moment (still struggling to get the correct API key from Google, getting confused by all their options…)

    #50071
    Chris Homan
    Member

    Done, misread your instructions (copy & pasted instead of delete). Minified it and all works perfectly. THANKS!!!

    Private Content Hidden
    #50072
    Chris Homan
    Member

    An odd error is occurring now. When I submit the post it creates a duplicate post…

    #50073

    You are welcome. I will try to release an official fix during the weekend as I am working on few other issues with the plugin.

    regarding the API key, it is no longer required for Google Maps API to work. The warning that you see regarding the API key invalid ( not the errors message you get about the multiple API calls ) should not effect the functionality of your site and I will look into removing the warning in the coming version.

    If you want to try and remove the warning open the file gravityforms-geolocation/gravityforms-geolocation.php and remove line 186 should be

    I am not sure it will do but it might.

    #50075

    An odd error is occurring now. When I submit the post it creates a duplicate post…

    I don’t think that the last change that you did created this issue. I actually never experience this kind of issue. Can you check what causes it?

    #50076
    Chris Homan
    Member

    I’ll look into it. It doesn’t happen without your plugin but I cannot say for sure it’s caused by it. I will do some digging and let you know if it is related. If you want to have a look yourself, I can also give you admin access to the site.

    #50077
    Chris Homan
    Member

    Hi Eyal,

    I’ve done some troubleshooting and I’m certain the duplicates are related to your plugin. When I use the form and enter no geo related data, only one post is created. But when I add a location, a duplicate is created. Very odd…

Viewing 15 posts - 1 through 15 (of 30 total)

The topic ‘No autocomple’ is closed to new replies.