Support

Account

Home Forums General Issues Radio groups should not have an option checked by default Reply To: Radio groups should not have an option checked by default

  • Hi @squarestarmedia

    I’m really sorry that my answer makes you feel that way. I just want to make sure that my answer can be followed easily, even for a new user.

    As John said before, most of the time users want one of radio buttons to be selected because that’s how it supposed to be. It’s not a rule, but it’s just how it works most of the time. If you think this is not how it supposed to be, you can always open a new ticket on the following link to fill a bug report or feature request: https://support.advancedcustomfields.com/new-ticket.

    In the meantime, you I believe you can use jQuery to modify the “checked” attribute (this would be for advanced users). You can use the acf/input/admin_head hook to add the script. In that hook, you can check if the field has a value or not and then remove the “checked” attribute if it doesn’t have a value yet.

    I hope this makes sense 🙂