Support

Account

Home Forums Add-ons Flexible Content Field Javascript API

Solving

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?

Viewing 3 posts - 1 through 3 (of 3 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.