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
You can only do this in PHP if all of the sub fields will have the same default value. You really don’t need to add anything if all of the sub fields will have the same value.
You can only generate sub fields with different values in PHP if you create enough rows in the repeater to hold those values.
There is not much in the way of examples for doing the last.
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!