Support

Account

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)