Home › Forums › Backend Issues (wp-admin) › Load dynamically fields on select change › Reply To: Load dynamically fields on select change
Hi!
Yes I had, here is my file if you can check it would be awesome.
And this is what I have in my acf_ctp.js
jQuery(function($){
$(document).on('change','#custom_post_template', function(){
console.log(acf.screen);
acf.screen.cpt_template = $(this).val();
$(document).trigger("acf/update_field_groups");
console.log(acf.screen);
});
});
I don’t know what I’m missing. Thanks,
(I tried to attach a php file)
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.