Dan Goldenberg
Dan Goldenberg

Reputation: 71

Possible to have radio buttons not required?

I want to use Radio for the possible selection of a field. I have found that I am required to select one of the values. Is it possible to use radio buttons for a field and not require the user to select one? (I don't want to use a null default value as that gives me an odd looking, blank radio button).

Upvotes: 0

Views: 1050

Answers (1)

Pavel Shkleinik
Pavel Shkleinik

Reputation: 6347

Make sure that:

  1. Your model field is not required
  2. 'Allow null' setting for the radio button is checked

Upvotes: 1

Related Questions