Use $options[…] instead of $form->getConfig()->getAttribute(…)