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
$source_fields = get_field_objects($another_post_id);
$source_fields = get_field_objects($another_post_id, false);
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.