Home › Forums › Feature Requests › Filters: More flexible load_field and load_value. Having the context data › Reply To: Filters: More flexible load_field and load_value. Having the context data
If you are okay with needing to save the post in order for the choices of other fields to be generated properly then this can be done with the standard acf/load_field filter.
PHP could also be used to have different values in different rows of a repeater, but it is far more complicated. First, the repeater rows would need to exist when you saved the post. Then when each row of the repeater is loaded you can use other functions, for example there is a function in ACF that gets the parent of the current field, you can get the values in parent fields and set the values of individual rows. It would be a fairly complicated process, but it could be done. Personally I’d find it easier to do it with JavaScript and a little AJAX where needed.
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.