3 declare(strict_types=1);
30 $ui = $DIC->ui()->factory();
32 $request = $DIC->http()->request();
35 $radio = $ui->input()->field()->radio(
"Radio",
"check an option")
36 ->withOption(
'value1',
'label1',
'byline1')
37 ->withOption(
'10',
'numeric value (ten)',
'byline2')
38 ->withOption(
'030',
'not-numeric value',
'byline3');
41 $form = $ui->input()->container()->form()->standard(
'#', [
'radio' => $radio]);
44 if ($request->getMethod() ==
"POST") {
45 $form = $form->withRequest($request);
46 $result = $form->getData();
48 $result =
"No result yet.";
53 "<pre>" . print_r($result,
true) .
"</pre><br/>" .