Fork me on GitHub

Also, check out the Radio Button Widget page for other techniques.

Radio Button Widget

form.elements.my_radio_buttons = {
  title: 'Radio Station',
  type: 'radios',
  options: {
    0: 'Rock and Roll',
    1: 'Metal'
  },
  default_value:1
};