I've tried a myriad of ways and can't seem to get it to work in preGenerateForm() function. Any samples on how to add a simple Yes/No radio button group using DataObject_FormBuilder?

Thanks.

Using the code below throws an error:

$g[] = HTML_QuickForm::createElement('radio', 'license', null, 'Yes', 'Y');
$g[] = HTML_QuickForm::createElement('radio', 'license', null, 'No', 'N');
$this->fb_preDefElements['license'] = HTML_QuickForm::addGroup($g, 'radiolicense', 'license:');