Form Validation
Created 7 years ago by jcastillotx

If I am using the FormBuilder that was created inside the module and using a custom url what is the best way to validate the form?

ryanthompson  —  7 years ago

I just added a method called validate. Composer update.

You will want to build it first to make sure the form object is ready.

$form->build()->validate();

dd($form->hasFormErrors());
jcastillotx  —  7 years ago

Thanks