Home › Forums › General Issues › Default value not working. › Reply To: Default value not working.
Hi @KimH,
Hmm, I just tried a test and it seems to be working fine. 0/No is selected and when I look at the source in firebug, that input has checked=""checked""
as an attribute. I copy and pasted your code block above into a radio field.
1 : Yes
0 : No
Is it possible some other javascript on the page is selecting the first one? Are you sure what you have above is what’s in the choices field. Looks like you already know this but the spaces around the colons are important.
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.