Just to be clear, it’s only NOT working when I load acf_form within the admin panel. If I load it as a template on the front end, it works just fine. No JS errors.
Hello,
I’m confused, I don’t really understand what’s you’re trying to achieve. I’ll need some more informations.
You use acf_form() to display a field group (with flexible content inside it). However, the flexible content modal doesn’t work?
Is it in front-end, or back-end? If you’re in the back-end, how do you include the acf_form()?
Also: Do you have the latest WP / ACF Pro / ACF Extended versions?
Regards.
I’ve gone ahead and shot a quick video to show you what I’m doing/trying to achieve: https://www.loom.com/share/d1fb63c53660447d8a9c8283bda8fb6e
I’ll also add – I’m not getting any JS errors in console, either.
Hello,
Oh wow okay! Thanks for the video, it explains the problem much better.
It looks like you use a very custom theme/plugin for your website. The problem come from there, as it implemented some kind of acf_form() panel for the administration. Can you send the plugin/theme name?
You should also join us on slack, it will be easier to discuss there: https://join.slack.com/t/wpacf/shared_invite/enQtODQ3OTY0MjY3MTA0LTJjNGUzN2E4ZTcxZWUwZWYyNWY3OTUwYzQzOTMzNDk1MjI3NzMzYjI3ZGYzNGIxN2I1NjM1ZjEzNmE1MGRmNTY
I’ll check the theme and see what I can do about that.
Last question, what is your WP version?
Regards.
Awesome – glad that helped. I went ahead and joined your Slack and shot you a message.
It’s all custom built by me – so we can dive into the code together if you’d like.
Thanks,
Oh… That’s custom code. I understand now 🙂
Will catch you later.
Regards.
I’m closing the ticket. The author was using custom code to display an acf_form() in the back-end. For people who has the same issue:
The problem came from how the author enqueued ACF script/style files. The native function acf_form_head() (or acf_enqueue_scripts()) should be used.