Issues with location fields prepopulating from front end form

Support MB Geolocation Issues with location fields prepopulating from front end form

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #49751
    Tanja KropfTanja Kropf
    Participant

    When 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"
    }

    #49752
    Tanja KropfTanja Kropf
    Participant

    Ugh, 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.

    #49753
    Tanja KropfTanja Kropf
    Participant

    can 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.

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