renderWith("SubmittedFormReportField"); } /** * Return the submissions from the site * * @return ComponentSet */ function Submissions() { return $this->form->getRecord()->Submissions(); } /** * Link to the export function of the controller * * @return String */ function ExportLink() { if($this->Submissions() && $this->Submissions()->Count() > 0) { return $this->form->getRecord()->Link() . 'export/' . $this->form->getRecord()->ID; } } /** * Link to the delete the submission * * @return String */ function DeleteLink() { if($this->Submissions() && $this->Submissions()->Count() > 0) { return $this->form->getRecord()->Link() . 'deletesubmissions/' . $this->form->getRecord()->ID; } } } ?>