I have three custom post types. Client, Contact, Project. Each client has multiple contacts associated with it.
In the project post type, I have added the following advanced custom fields:
Client and Contact fields are of type post object, because I need to pull them from existing post types data.
Now, what I want is, when I select a client here, I want the contact field to only have those contacts that belong to the select client. Right now it shows all contacts in the dropdown.
Please help me achieve this. Thanks.
You cannot do this with post object fields, see this example of using dynamically populated select fields https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-select-example