Fork me on GitHub

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

form.my_radio_buttons = {
  _title: dg.t('Radio Station'),
  _type: 'radios',
  _options: {
    0: dg.t('Rock and Roll'),
    1: dg.t('Metal')
  },
  _default_value: 1
};