diff --git a/forms/Form.php b/forms/Form.php index 6bf81eac5..b3821f1bc 100644 --- a/forms/Form.php +++ b/forms/Form.php @@ -556,7 +556,7 @@ class Form extends RequestHandler { * @return FieldList */ public function HiddenFields() { - return $this->fields->HiddenFields(); + return $this->Fields()->HiddenFields(); } /** @@ -564,7 +564,7 @@ class Form extends RequestHandler { * Useful when making your own simplified form layouts. */ public function VisibleFields() { - return $this->fields->VisibleFields(); + return $this->Fields()->VisibleFields(); } /**