Home › Forums › Add-ons › Flexible Content Field › Javascript API › Reply To: Javascript API
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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.