3 declare(strict_types=1);
28 $ui = $DIC->ui()->factory();
30 $request = $DIC->http()->request();
42 $select = $ui->input()->field()->select(
"Choose an Option", $options,
"This is the byline text")->withRequired(
true);
45 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
48 if ($request->getMethod() ==
"POST") {
49 $form = $form->withRequest($request);
50 $result = $form->getData();
52 $result =
"No result yet.";
57 "<pre>" . print_r($result,
true) .
"</pre><br/>" .