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.

  • 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?

  • 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)

The topic ‘Javascript API’ is closed to new replies.