you can also replace $form->getData() here with $formData