19 declare(strict_types=1);
46 $ui = $DIC->ui()->factory();
48 $request = $DIC->http()->request();
51 $radio = $ui->input()->field()->radio(
"Radio",
"check an option")
52 ->withOption(
'value1',
'label1',
'byline1')
53 ->withOption(
'10',
'numeric value (ten)',
'byline2')
54 ->withOption(
'030',
'not-numeric value',
'byline3');
57 $form = $ui->input()->container()->form()->standard(
'#', [
'radio' => $radio]);
60 if ($request->getMethod() ==
"POST") {
61 $form = $form->withRequest($request);
62 $result = $form->getData();
64 $result =
"No result yet.";
69 "<pre>" . print_r($result,
true) .
"</pre><br/>" .