Home › Forums › General Issues › Relationship fields filtering over next relation › Reply To: Relationship fields filtering over next relation
Hi @mmn
Thanks for the question.
Lets assume you are on the edit page for a person, and you want to select 1 event and then 1 Appointment.
You can use ACF to create the Event field (post object field). This will show all Events posts and allow 1 selection.
Next, you need to update / populate the Appointment select field. I would create this as a select field with no choices, and rely on JS to populate is after an Event has been selected.
You could write a jQuery event for the Appointment Change, and then get the Appointments via AJAX, then just update the Appointments select DOM object with the results.
Good luck!
Thanks
E
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.