diff --git a/code/forms/UserForm.php b/code/forms/UserForm.php index 110d27b..cd1f38c 100644 --- a/code/forms/UserForm.php +++ b/code/forms/UserForm.php @@ -17,11 +17,14 @@ class UserForm extends Form { parent::__construct( $controller, $name, - $this->getFormFields(), - $this->getFormActions(), - $this->getRequiredFields() + new FieldList(), + new FieldList() ); + $this->setFields($this->getFormFields()); + $this->setActions($this->getFormActions()); + $this->setValidator($this->getRequiredFields()); + // Number each page $stepNumber = 1; foreach($this->getSteps() as $step) {