"handleAction", ); protected $template = 'BlankPage'; function Link($action = null) { /** @skipUpgrade */ return Controller::join_links( 'EmailFieldTest_Controller', $this->getRequest()->latestParam('Action'), $this->getRequest()->latestParam('ID'), $action ); } function Form() { $form = new Form( $this, 'Form', new FieldList( new EmailField('Email') ), new FieldList( new FormAction('doSubmit') ), new RequiredFields( 'Email' ) ); // Disable CSRF protection for easier form submission handling $form->disableSecurityToken(); return $form; } function doSubmit($data, $form, $request) { $form->sessionMessage('Test save was successful', 'good'); return $this->redirectBack(); } function getViewer($action = null) { return new SSViewer('BlankPage'); } }