public function on_start() { $request = $this->getRequestObject(); $form = new Form($request); $res = $form->getByID($this->appID); if ($res->isSuccess()) { $properties = $res->getProperties(); $this->set('properties', $properties); $fields = new FieldList($properties); $this->set('fields', $fields); } $this->set('appID', $this->appID); }