Home › Forums › Add-ons › Repeater Field › Dynamically generate subfield content when adding rows to a nested repeater › Reply To: Dynamically generate subfield content when adding rows to a nested repeater
I’m guessing all I need to do is work out what I’m supposed to change on the conditional “if ($value === false)” which currently only checks if the field is empty when creating the new post, so that it checks if the nested repeater fields are empty upon creation of new child repeaters, and populates them with the default values. Perhaps this needs to be done more like with jQuery than with PHP alone.
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.