Home › Forums › Add-ons › Repeater Field › Load Select Post Subfields on Repeater › Reply To: Load Select Post Subfields on Repeater
To do this you have to add custom JS to ACF, use the ACF JS API to get the value of the field, and then you have to do your own AJAX request to get the values of the other fields.
I do not have a working example. This example does not work with the new ACF JS API https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-fields-on-relationship but it does something similar. It loads other fields based on a relationship field.
This one has a working example of doing an AJAX request based on a select field change https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-select-example.
When working with repeaters you must target the row where the updated field was changed.
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.