Binding not working
Support › MB Geolocation › Binding not workingResolved
- This topic has 7 replies, 2 voices, and was last updated 2 weeks, 1 day ago by
Roel Petra.
-
AuthorPosts
-
July 30, 2025 at 12:50 AM #48624
Roel Petra
ParticipantHi there,
I'm using the Open Street Maps for my geolocation however the binding doesn't seem to work for all fields.
It does work for the lat and lng but not for pretty much all the other fields.
I've tried:
city
,building
,house_number
,aeroway
,road
, etc. etc. (all of them).I'm putting the binding in the "Custom settings" part of each text field.
I've even tried puttingcity
as the field id, this still wont fill the field.Also when I do the binding with a custom Id it doesn't work.
July 30, 2025 at 10:59 PM #48625Peter
ModeratorHello Roel,
Thanks for reaching out.
Can you please export the field group to a JSON file and share it with me? I will import the field group to my site and investigate the issue.
Please follow the documentation to export the field group https://docs.metabox.io/extensions/meta-box-builder/#export--importJuly 30, 2025 at 11:01 PM #48626Roel Petra
ParticipantHi Peter,
You'll find it here: https://wormhole.app/D1yWYM#hdyzuUjkRONs2qUOJwiA8w
Please note the file is available for 24 hours.July 31, 2025 at 8:31 PM #48627Peter
ModeratorHello Roel,
There are some issues in the field group that I can see:
1.
geo
setting is not enabled https://docs.metabox.io/extensions/meta-box-geolocation/#field-group-settings2.
address
field should start withaddress_xxx
https://docs.metabox.io/extensions/meta-box-geolocation/#address-field3. Custom binding is missing for the
dtv_vacancy-location-city
field https://docs.metabox.io/extensions/meta-box-geolocation/#custom-bindingPlease fix them and let me know how it goes.
July 31, 2025 at 8:51 PM #48628Roel Petra
ParticipantHi Peter,
So you're saying I need to put this into a MB Group?
I've added 'geo true' to the settings on the custom fields.
Do I add this to the tab in this case?The address field is working, it's also giving me suggestions since I've mapped it from the osm map.
Do you mean that I NEED to do this in order to get the Geolocation mapping working?I have binding mapped on my city field, if it's not mapped then there's a bug with the saving of the custom fields.
July 31, 2025 at 8:52 PM #48629Roel Petra
ParticipantI've looked at the file too, I do see the binding:
{ "name": "Stad", "id": "dtv_vacancy-location-city", "type": "text", "limit_type": "character", "binding": "city", "tab": "dtv_vacancy-location-tab" },
July 31, 2025 at 10:50 PM #48630Peter
ModeratorHello,
I already shared some settings that you need to enable to make the geolocation work. Please check this screen record https://drive.google.com/file/d/1_3f7AELY_WKDWOqNI-JE4KnNDSUlhSdf/view?usp=sharing
and follow the documentation carefully https://docs.metabox.io/extensions/meta-box-geolocation
August 2, 2025 at 6:51 PM #48632Roel Petra
ParticipantI got it solved 🙂 Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.