Home › Forums › Add-ons › Repeater Field › update a acf sub_field with the value from a different sub_field › Reply To: update a acf sub_field with the value from a different sub_field
Hi @renar
You need to do it by using the acf/save_post hook instead. That way, the data will be updated when your users are saving the address.
Also please use the update_field() function with the field key of the repeater field instead of the subfield. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/update_field/.
I hope this helps. If you have any other questions, feel free to ask me again 🙂
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.