Home › Forums › ACF PRO › Default selected radio button › Reply To: Default selected radio button
Interesting question… but I don’t have an answer for you unfortunately (reg the radio button solution). I think it’s hard to prevent this, the way you set it up.
What you could do (but this requires some coding) is to create 2 checkboxes instead of radio buttons for gender. Make this field required and don’t select a default value.
Then with javascript, create a function that disables the other checkbox (on change), so only 1 option can be selected.
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.