Home › Forums › Front-end Issues › filter post object data based on another post object value ID › Reply To: filter post object data based on another post object value ID
In this kind of situation, the solution can be really complicated. Because when you choose the Mall object, it’s not saved in the database yet, so the Cinema doesn’t know the selected Mall ID. In this case, you need to use AJAX to modify the returned Cinema objects. There’s an old tutorial on how to do something similar but for the select field. Please check it out here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/. I think you can modify it so it works with the post object field too.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.