3 declare(strict_types=1);
32 $ui = $DIC->ui()->factory();
34 $request = $DIC->http()->request();
45 $multi = $ui->input()->field()->multiselect(
"Take your picks", $options,
"This is the byline text")
49 $form = $ui->input()->container()->form()->standard(
'#', [
'multi' => $multi]);
53 if ($request->getMethod() ==
"POST") {
55 $form = $form->withRequest($request);
56 $result = $form->getData();
58 $result =
"No result. Probably, the other form was used.";
61 $result =
"No result yet.";
66 "<pre>" . print_r($result,
true) .
"</pre><br/>" .