None that I’m aware of.
If I was going to try to do something like this I would…
1) get the entire inner HTML of the layout
2) generate a new uniqid for a new layout and then somehow insert the entire layout into the page
3) get all of the fields that might be in the layout by looking for “data-key” and “data-type” values
4) trigger some kind of event on each new field to make ACF refresh it
Like you said, it’s pretty messy and would take a lot of work just figuring out what events to trigger. I think that if someone were to create something like this there’d be a lot of people willing to pay for it.
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!
© 2023 Advanced Custom Fields.