19 declare(strict_types=1);
37 $ui = $DIC->ui()->factory();
39 $request = $DIC->http()->request();
51 $select = $ui->input()->field()->select(
"Cannot choose an Option", $options,
"This is the byline text")
55 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
58 if ($request->getMethod() ==
"POST") {
59 $form = $form->withRequest($request);
60 $result = $form->getData();
62 $result =
"No result yet.";
67 "<pre>" . print_r($result,
true) .
"</pre><br/>" .