Home › Forums › Add-ons › Repeater Field › Dynamically Populate Repeater Field with Users › Reply To: Dynamically Populate Repeater Field with Users
Thank you for your response! The main group is a transaction for real estate. I have dozens of fields about the transaction and one of the fields is a commission repeater to add each agent and their commission for this particular transaction. I plan to calculate it by default (which is a different topic), but right now I’m focused on a number field. I would need to update the calculation in many cases, anyway, as commissions have a default, but vary for all sorts of reasons on individual transactions.
So, I have a repeater and I need a row for each user who is the type, “editor”. I would not want to add the rows, if there are already rows in the repeater. (As you said, I wouldn’t want to add users to a transaction a year from now when the users have changed and the transaction already has users with commissions assigned.)
From your post, I don’t understand how the value works. It seems as though I have to define each possible row explicitly, rather than grab the users, dynamically. Can you help me understand?
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.