Conditional Logic - Geo Fields - Fault

Support MB Conditional Logic Conditional Logic - Geo Fields - Fault

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #48042
    Simon FeldmanSimon Feldman
    Participant

    I have a custom field group setup using the google map API auto complete as a text box.

    Below it I have all the output fields, country, phone, website etc.

    These all work fine until I put conditional logic onto them, any field with conditional logic won't bind and take the data from the auto complete box.

    One work around is putting them all in a group for conditional logic but then I can't reference the meta_tags in Elementor for use as fields or in a search and filter widget to use them as filters as they are lost somewhere in the group and the meta tags aren't reachable?

    [url=https://postimg.cc/rKYMyhLC][img]https://i.postimg.cc/rKYMyhLC/Screenshot-2025-04-13-140131.jpg[/img][/url]

    [url=https://postimg.cc/0rn9FkW4][img]https://i.postimg.cc/0rn9FkW4/Screenshot-2025-04-13-140150.jpg[/img][/url]

    #48053
    PeterPeter
    Moderator

    Hello Simon,

    If you want to display a subfield value in a group when using the dynamic tag of Elementor, please create a Meta Box Group skin (a kind of Elementor template) and include it in the post/page template.
    Please follow the documentation to know how to create the skin
    https://docs.metabox.io/tutorials/create-dynamic-landing-page-with-elementor/#4-create-skins-to-display-content-from-groups

    #48054
    Simon FeldmanSimon Feldman
    Participant

    That’s really useful thank you very much! 😃

    Any idea about the conditional logic fault?

    #48057
    Simon FeldmanSimon Feldman
    Participant

    As if I use the group workaround I then can’t use the meta data in my search filter.

    #48061
    PeterPeter
    Moderator

    Hello,

    Can you please export the field group to a JSON file and share it here? I will import it to my site and check the issue with conditional logic.
    Refer to the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import

    #48131
    Simon FeldmanSimon Feldman
    Participant

    Hi Peter,

    How are you? Seems like there's been alot of work going on behind the scenes so thank you!

    <b> File with Con Logic Fault </b>

    So the file to try is here: https://tmpsend.com/i3sVL9db

    Go to > add new post > location > toggle switch (mb_loc_tog)

    Now you see all the fields dissapear and appear correctly with conditional but the fields won't fill the data.

    <b> Working without con logic</b>

    Try the tab activity, I haven't setup con logic on the address fields for that one and they work

    <b> Tab Style Fault </b>

    Once I introduce the con logic to the address fields the tab layout doesn't save in the overall settings, I usually style it as seamless and left tabbed, once I introduced con logic to these address fields that doesn't save and it reverts to the above tab and as a meta box.

    Thanks for all your help on this! I understand there's alot in here so thank you for your help.

    #48143
    PeterPeter
    Moderator

    Hello Simon,

    1. but the fields won't fill the data.

    Do you mean the address fields won't be populated after typing the address field "Search Address"? I don't see that you have the field ID as same as address field IDs in the documentation
    https://docs.metabox.io/extensions/meta-box-geolocation/#other-fields

    2. Try the tab activity, I haven't setup con logic on the address fields for that one and they work

    I see the same issue as point 1.

    3. the tab layout doesn't save in the overall settings

    Please use the tab settings as in the screenshot below, it works properly on my demo site.
    https://imgur.com/C1JA9H8

    #48148
    Simon FeldmanSimon Feldman
    Participant

    Hi Peter,

    I think when I export not all the custom fields export with it so that would be missing data.

    Can you try one of the fields in the location tab,

    That gets it's data from the search field, e.g. binding > formatted_address + address_field > address_loc

    Then set con logic on that field to mb_loc_tog > 1

    Then it will stop working?

    Sorry think a bit of confusion over the forum.

    #48157
    PeterPeter
    Moderator

    Hello Simon,

    I can see the issue. Let me escalate it to the development team and I will get back to you when I have more information.

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