Google Autofill not working

Support MB Geolocation Google Autofill not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #49193
    shmaltzshmaltz
    Participant

    For some reason the Google Geolocation isn't auto filling the fields (it was previously working), and I noticed this error in console:

    geolocation.js?ver=1758761964:55 Uncaught TypeError: Cannot set properties of null (setting 'value')
    at Map.populateField (geolocation.js?ver=1758761964:55:44)
    at geolocation.js?ver=1758761964:33:62
    at Array.forEach (<anonymous>)
    at Map.populateFromAddress (geolocation.js?ver=1758761964:33:39)
    at KD.<anonymous> (geolocation.js?ver=1758761964:143:10)
    at _.Kn (js?key=AIzaSyAldnUEO…er=5.10.14:1231:463)
    at Qn (js?key=AIzaSyAldnUEO…er=5.10.14:1233:125)
    at Qn (js?key=AIzaSyAldnUEO…er=5.10.14:1233:109)
    at _.On.set (js?key=AIzaSyAldnUEO…r=5.10.14:1418:1063)
    at V$.HC (js?key=AIzaSyAldnUEO…er=5.10.14:1240:422)s=places&ver=5.10.14:1240:422)

    The map field does work though. Any suggestions?

    #49197
    PeterPeter
    Moderator

    Hello,

    The Geolocation extension still works properly on my demo site, screenshot https://imgur.com/ead26K8. I think there could be an issue with your Google API Key. Please try to create a new key and recheck the issue.

    If it still doesn't work, please export your field group to a JSON file and share it with me. I will import it to my site and investigate the issue.

    #49201
    shmaltzshmaltz
    Participant

    Thank you. I tried changing the API key and it didnt work.
    Please see my json export: https://pastebin.com/hjyPaMwE
    Password: 1z9MNaFGaC

    #49206
    PeterPeter
    Moderator

    Hello,

    I see there are some issues when checking your field group:

    1. Address fields, if you use the custom ID, you have to use the binding setting, screenshot https://imgur.com/wkyHmpF
    Following the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#custom-binding

    2. Field group setting doesn't have geo.api_key, screenshot https://imgur.com/J5YL3hj
    Following the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#geolocation-api

    After that, the address fields are auto-populated with values as well. Here is the screen record https://drive.google.com/file/d/1l_mZHqxbYdltxVcGxMW2zC_b7u0rlMK0/view?usp=drive_link

    #49210
    shmaltzshmaltz
    Participant

    Its strange that the binding didn't get exported in the json, because it is there in my settings. Also, in the docs it says if I'm using the Google maps field, I don't need to put in the API key twice..

    It seems I get the error if I put a condition on the fields (even if the condition is true). I took off the condition (only show field if {field} = {value}) from my fields and it seems to work now... This seems like a bug

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.