Generate an HTML radio group
Generate an HTML radio group
Example:
@inputRadioGroup( contactForm("gender"), options = Seq("M"->"Male","F"->"Female"), '_label -> "Gender", '_error -> contactForm("gender").error.map(_.withMessage("select gender")))
The form field.
Seq of radio buttons encoded as value -> label
Set of extra HTML attributes.
The field constructor.