Google Autofill not working
Support › MB Geolocation › Google Autofill not working
- This topic has 4 replies, 2 voices, and was last updated 5 hours, 33 minutes ago by
shmaltz.
-
AuthorPosts
-
October 22, 2025 at 9:47 AM #49193
shmaltz
ParticipantFor 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?
October 22, 2025 at 10:20 PM #49197Peter
ModeratorHello,
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.
October 23, 2025 at 8:12 AM #49201shmaltz
ParticipantThank you. I tried changing the API key and it didnt work.
Please see my json export: https://pastebin.com/hjyPaMwE
Password: 1z9MNaFGaCOctober 23, 2025 at 11:30 PM #49206Peter
ModeratorHello,
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
bindingsetting, screenshot https://imgur.com/wkyHmpF
Following the documentation https://docs.metabox.io/extensions/meta-box-geolocation/#custom-binding2. 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-apiAfter 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
October 24, 2025 at 12:29 PM #49210shmaltz
ParticipantIts 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
-
AuthorPosts
- You must be logged in to reply to this topic.