Support

Account

Home Forums Backend Issues (wp-admin) Load dynamically fields on select change Reply To: Load dynamically fields on select change

  • When I attempt this code, acf.screen is undefined when I change the Parent Page dropdown. Is there something I’m missing as well?

    jQuery(function ($) {
      $(document).on('change', '#parent_id', function () {
    
        acf.screen.parent_page = $(this).val();
    
        $(document).trigger('acf/update_field_groups');
    
      });
    });