i have just started using the clone field but have some issues with it.
for most field types and also for groups it works fine but cloning repeater or flexible content fields doesn’t seem to work properly.
the cloned repeater/flexible content fields show up when editing the page, i can fill them with data but once i save the page the whole data vanishes. what could be the reason for this? i don’t think it’s a naming conflict since there aren’t any other fields with the same names on the page.
of course i can clone the fields that are in a repeater but that’s not really what i would like to do. 🙂
I also encountered this issue today.
Here is the configuration that caused the problem:
With this configuration, the fields show up correctly on pages with field group B, but the flexible content layouts are not saved.
Workaround: Simply rename the clone to something like “modules” or “cloned_modules”. Then it works 🙂
Could be why I’ve not seen the issue. Usually when I’m cloning a field and making it seamless I use something like “Clone of XXX” as the label so that I can see at a glance that it’s a clone and what it is a clone of. ACF automatically makes the field name “clone_of_xxx” which I don’t worry about because I’ll never use it.
You must be logged in to reply to this topic.
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!
© 2022 Advanced Custom Fields.