Issues with location fields prepopulating from front end form
Support › MB Geolocation › Issues with location fields prepopulating from front end form
- This topic has 2 replies, 1 voice, and was last updated 9 minutes ago by
Tanja Kropf.
-
AuthorPosts
-
February 12, 2026 at 12:11 AM #49751
Tanja Kropf
ParticipantWhen I add a location in the admin, no issue with it populating the correlating fields.
When someone submits a front-end form, it doesn't work. I've added the json file below. Why is it not working?
{
"$schema": "https://schemas.metabox.io/field-group.json",
"custom_settings": {
"69f1sacm9r": {
"id": "69f1sacm9r",
"key": "geo.api_key",
"value": "AIzaSyB5yZOkCtkWumpjOgJdsFLV2uwYL2NtFSU"
},
"geo": {
"id": "geo",
"key": "geo",
"value": "{\"api_key\":\"AIzaSyB5yZOkCtkWumpjOgJdsFLV2uwYL2NtFSU\"}"
}
},
"fields": [
{
"type": "heading",
"name": "LOCATION"
},
{
"name": "Venue",
"id": "venue",
"type": "post",
"placeholder": "Select venue",
"admin_columns": {
"position": "after title",
"sort": true,
"searchable": true,
"link": "view"
},
"post_type": [
"listing"
],
"field_type": "select_advanced",
"add_new": true,
"limit_type": "character",
"visible": {
"type": "visible",
"relation": "or",
"when": {
"3reh800by8n": [
"event_package",
"=",
"free"
],
"iiwov6930lt": [
"event_package",
"=",
"cp"
],
"hjefhqidxf": [
"event_package",
"=",
"headliner"
],
"t5sfcf7famn": [
"event_package",
"=",
"encore"
]
}
}
},
{
"name": "Address",
"id": "address",
"type": "text",
"label_description": "Enter street address",
"size": 75,
"admin_columns": {
"position": "after title",
"sort": true,
"searchable": true,
"filterable": true,
"link": "edit"
},
"limit_type": "character"
},
{
"name": "Suite/Unit",
"id": "suiteunit",
"type": "text",
"placeholder": "ex: Ste 100",
"size": 20,
"limit_type": "character"
},
{
"name": "Google Map",
"id": "google_map",
"type": "map",
"api_key": "AIzaSyB5yZOkCtkWumpjOgJdsFLV2uwYL2NtFSU",
"std": "32.808758,-117.2718978",
"address_field": "address"
},
{
"name": "Neighborhood",
"id": "neighborhood",
"type": "text",
"hide_from_front": true,
"limit_type": "character"
},
{
"name": "Street number",
"id": "street_number",
"type": "text",
"hide_from_front": true,
"limit_type": "character"
},
{
"name": "Street",
"id": "route",
"type": "text",
"hide_from_front": true,
"limit_type": "character"
},
{
"name": "City",
"id": "locality",
"type": "text",
"hide_from_front": true,
"limit_type": "character"
},
{
"name": "State",
"id": "administrative_area_level_1",
"type": "text",
"hide_from_front": true,
"limit_type": "character"
},
{
"name": "Zip Code",
"id": "postal_code",
"type": "text",
"hide_from_front": true,
"limit": 10,
"limit_type": "character"
},
{
"type": "divider"
}
],
"geo": {
"api_key": "AIzaSyB5yZOkCtkWumpjOgJdsFLV2uwYL2NtFSU"
},
"id": "location",
"modified": 1769556673,
"post_types": [
"event",
"listing"
],
"title": "Location"
}February 12, 2026 at 12:13 AM #49752Tanja Kropf
ParticipantUgh, and yes, I realize I added my API key on here accidentally, so to whomever is looking at it, I'm going to update it.
February 12, 2026 at 1:52 AM #49753Tanja Kropf
Participantcan you please delete this. I got it figured out. I was hiding fields from front end, but hidden fields didn't work either, so had to use CSS to hide. But would still appreciate you deleting since it has api key.
-
AuthorPosts
- You must be logged in to reply to this topic.