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
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!
© 2022 Advanced Custom Fields.