Home Forums ACF PRO Default selected radio button


Default selected radio button

  • I noticed that it always is a default selected radio button.
    I have “Gender” radio buttons. And on “add new” i get that the first option is selected.

    So in my case Female is default selected, so it might be that the user forgets to change to male.

    How should see/solve this issue?

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Default selected radio button’ is closed to new replies.