Support

Account

Home Forums Backend Issues (wp-admin) Update ACF fields in WordPress admin using Ajax Reply To: Update ACF fields in WordPress admin using Ajax

  • Some fields take more coding to update. To be honest I’m not sure what you have to do.

    this returns the field

    
    var field = acf.getField(key);
    

    the field type will be part what is returned. You’ll need to look at that and then do something different for more complex fields. Unfortunately, like I said, I don’t know what needs to be done for every field type.

    It might help if you change you php to not format the values being returned

    Change this

    
    $source_fields = get_field_objects($another_post_id);
    

    to this

    
    $source_fields = get_field_objects($another_post_id, false);