$list = array( 'Choice 1' => 'value1', 'Choice 2' => 'value2', 'Choice 3' => 'value3' ); $form = new ilPropertyFormGUI(); $form->setTitle('Radio Button Form'); $radioGroup = new ilRadioGroupInputGUI('Select a Choice:', 'choice'); $radioGroup->setRequired(true); foreach($list as $label => $value) { $radioGroup->addOption($label, $value); } $form->addItem($radioGroup); $form->addCommandButton('submit', 'Submit'); $form->setFormAction($ilCtrl->getFormActionByClass('ExampleController')); $package = 'ilias/core'; echo $form->render();In the above code, a form is created with a radio button group that allows users to select one choice from a list of choices. The choices are defined in an array, and the radio button group is generated using the ilRadioGroupInputGUI method. The form is then rendered using the render method of the ilPropertyFormGUI class. The package library for this method is 'ilias/core'.