3 declare(strict_types=1);
14 $ui = $DIC->ui()->factory();
15 $renderer = $DIC->ui()->renderer();
16 $request = $DIC->http()->request();
27 $multi = $ui->input()->field()->multiselect(
"Take your picks", $options,
"This is the byline text")
31 $form = $ui->input()->container()->form()->standard(
'#', [
'multi' => $multi]);
35 if ($request->getMethod() ==
"POST") {
37 $form = $form->withRequest($request);
38 $result = $form->getData();
40 $result =
"No result. Probably, the other form was used.";
43 $result =
"No result yet.";
48 "<pre>" . print_r($result,
true) .
"</pre><br/>" .
49 $renderer->render($form);