Form Validation
Created 8 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  —  8 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  —  8 years ago

Thanks