Home › Forums › Backend Issues (wp-admin) › Load dynamically fields on select change › Reply To: Load dynamically fields on select change
Hi @jepser
You are very close, but looking at the /js/input/ajax.js file, you can see that the acf.screen objecrt needs to be updated with the new value!
Here is an example of the page template
$(document).on('change', '#page_template', function(){
acf.screen.page_template = $(this).val();
$(document).trigger('acf/update_field_groups');
});
You should be able to see how to change page_template to post_template!
Thanks
E
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.