diff --git a/code/MultiForm.php b/code/MultiForm.php index 22908ea..df30cb3 100644 --- a/code/MultiForm.php +++ b/code/MultiForm.php @@ -377,7 +377,13 @@ abstract class MultiForm extends Form { Director::redirectBack(); return false; } - + + if(!$this->getCurrentStep()->validateStep($data, $form)) { + Session::set("FormInfo.{$form->FormName()}.data", $form->getData()); + Director::redirectBack(); + return false; + } + // Save the form data for the current step $this->save($data); }