Home › Forums › General Issues › Copy one field to another one on relationship selected › Reply To: Copy one field to another one on relationship selected
The examples I’ve posted are just so that you can have an idea of what’s involved. For other custom fields you would get them the same way you’d normally get fields from ACF
$value = get_field('my_field', $post_id);
return them as part of the json value and then update the fields from that in your JavaScript. Sorry, I can’t really create examples for every type of field or every case. Sometimes it takes a lot of digging, testing, trial and error to figure out how to update some fields with JS.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.