Support

Account

Home Forums General Issues Dynamic Post Object Fields

Solved

Dynamic Post Object Fields

  • 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:
    Project Name
    Client
    Contact
    Notes

    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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.