19 declare(strict_types=1);
41 $ui = $DIC->ui()->factory();
43 $request = $DIC->http()->request();
47 $radio = $ui->input()->field()->radio(
"Radio",
"Cannot check an option")
48 ->withOption(
'value1',
'label1')
49 ->withOption(
'value2',
'label2')
50 ->withOption(
'value3',
'label3')
55 $form = $ui->input()->container()->form()->standard(
'#', [
'radio' => $radio]);
59 if ($request->getMethod() ==
"POST") {
60 $form = $form->withRequest($request);
61 $result = $form->getData();
63 $result =
"No result yet.";
68 "<pre>" . print_r($result,
true) .
"</pre><br/>" .