19 declare(strict_types=1);
44 $ui = $DIC->ui()->factory();
46 $request = $DIC->http()->request();
58 $select = $ui->input()->field()->select(
"Choose an Option", $options,
"This is the byline text")->withRequired(
true);
61 $form = $ui->input()->container()->form()->standard(
'#', [$select]);
64 if ($request->getMethod() ==
"POST") {
65 $form = $form->withRequest($request);
66 $result = $form->getData();
68 $result =
"No result yet.";
73 "<pre>" . print_r($result,
true) .
"</pre><br/>" .