Home Forums Add-ons Flexible Content Field Javascript API


Javascript API

  • Wondering if there’s a JS API to control the creation of layouts within a Flexible Content field group. The Javascript API docs does not seem to mention it so I did some digging around within acf-input.js without any luck.

    • jmuckel

    • December 15, 2018 at 6:08 am

    I would also be interested in is.

  • I have been having a look and found some extended functionality within pro/assets/js/acf-pro-input.js that allows you to return layouts and some other things. What I can’t understand though is how to programmatically add the sub-fields.

    I want to pre-populate certain post types or templates with field. I thought I could add a .js file to the post.php page within admin, that runs some of the acf API functionality but I can’t understand how to add values to a field.

    Anybody had any luck with this?

    • Keks

    • March 18, 2020 at 1:03 am

    I need to change the order of the flexible content field elements. My customer wants to enter the position number instead of using drag&drop, because he has up to 80 elements. So I am also looking for a solution.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.