9 $ui = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
14 $dependant_field1 = $ui->input()->field()->text(
"Item 1",
"Just some dependent group field");
15 $dependant_field2 = $ui->input()->field()->text(
"Item 1",
"Just another dependent group field");
17 $dependant_group = $ui->input()->field()->dependantGroup([
"Sub Part 1" => $dependant_field1,
"Sub Part 2" => $dependant_field2]);
20 $checkbox_input = $ui->input()->field()->checkbox(
"Checkbox",
"Check to display dependant field.")
22 ->withDependantGroup($dependant_group);
25 $DIC->ctrl()->setParameterByClass(
26 'ilsystemstyledocumentationgui',
31 $form_action = $DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
32 $form = $ui->input()->container()->form()->standard($form_action, [
"checkbox" => $checkbox_input]);
37 &&
$request->getQueryParams()[
'example_name'] ==
'checkbox') {
46 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
47 $renderer->render(
$form);
foreach($paths as $path) $request
if(isset($_POST['submit'])) $form