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.
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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users