Support

Account

Home Forums General Issues Populate field value with value of a different field? Reply To: Populate field value with value of a different field?

  • Nevermind! I figured it out myself. I needed to format it like this:

    function my_acf_load_field( $field ) {
    		
         $address = get_field('center_address', 342);
    		
         $field['default_value'] = $address;
         return $field;
    		 
    }
    
    add_filter('acf/load_field/name=contact_person', 'my_acf_load_field');