Closed foxycode closed 7 years ago
You can try this:
$disks = $form->addMultiplier('disks', [$this, 'addDisk'], 0);
public function addDisk(Container $container, Form $form): void
{
$container->addText('size', 'Size')
->addConditionOn($form['brand'], Form::EQUAL, 'kvm')
->setRequired();
}
@MartkCz Great, it's working :) Maybe this should be in docs. I have feeling that I dealt with this earlier.
Code:
Error: