Use value from ACF to populate other fields
I am struggling with this problem. I have a group pf ACF fields and a XML file with the corresponding values.
What I want is the user to be able to fill one field (with an id) and on the Publish post, to populate the values for the other fields based on the id.
I am able to do the searching on the XML and fill the values, but I don’t know how to run this function.
I tried with ‘save_post’ hook but it runs the function before the publish and the id field is still empty.
Any ideas how to run a function with a value from a custom field and the post id as vars?