Home › Forums › General Issues › autofill fields using acf_update_value › Reply To: autofill fields using acf_update_value
Hi @rotorbit69,
Thanks for the post.
Yes the code appears to be correct and the set value should override the one entered on the post edit page.
Please debug your code to check if the new value has been set through:
<?php
$field_value = get_field('myACFfieldname');
echo '<pre>';
var_dump( $field_value );
echo '</pre>';
?>
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.