Home › Forums › Backend Issues (wp-admin) › Update field radio button. › Reply To: Update field radio button.
I’m not sure what you’re trying to do?
You have a variable $company_newsletter that is either yes or no (as a string) and you want to update an ACF field with this value?
It seems like what you want to do is:
update_field('field_55e07b8c324a5', $company_newsletter, $acf_user_id);
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.