Conditional Logic - Geo Fields - Fault
Support › MB Conditional Logic › Conditional Logic - Geo Fields - Fault
- This topic has 8 replies, 2 voices, and was last updated 1 week, 3 days ago by
Peter.
-
AuthorPosts
-
April 13, 2025 at 8:07 PM #48042
Simon Feldman
ParticipantI 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]
April 14, 2025 at 11:22 PM #48053Peter
ModeratorHello 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-groupsApril 14, 2025 at 11:27 PM #48054Simon Feldman
ParticipantThat’s really useful thank you very much! 😃
Any idea about the conditional logic fault?
April 14, 2025 at 11:32 PM #48057Simon Feldman
ParticipantAs if I use the group workaround I then can’t use the meta data in my search filter.
April 15, 2025 at 10:45 PM #48061Peter
ModeratorHello,
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--importApril 22, 2025 at 12:55 AM #48131Simon Feldman
ParticipantHi 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.
April 23, 2025 at 10:30 PM #48143Peter
ModeratorHello 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-fields2. 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/C1JA9H8April 23, 2025 at 11:50 PM #48148Simon Feldman
ParticipantHi 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.
April 24, 2025 at 11:02 PM #48157Peter
ModeratorHello 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.
-
AuthorPosts
- You must be logged in to reply to this topic.