Use this form to set configuration prior to starting a regress.silverstripe.com test session (manual testing).

' ), $dbField = new DropdownField( 'db', 'Database', array( 'mysql' => 'MySQL', 'postgresql' => 'Postgres', 'mssql' => 'MSSQL', 'sqlite3' => 'SQLite3', ), Session::get('db') ), $chkField = new CheckboxField( 'enabletranslatable', 'Translatable?', Session::get('enabletranslatable') ) ), $actions ); $dbField->setHasEmptyDefault(false); if ($isRunning) { foreach ($form->Fields() as $field) { $form->Fields()->replaceField($field->Name(), $field->performReadonlyTransformation() ); } } return $form; } public function startsession($data, $form) { Session::set('enabletranslatable', (isset($data['enabletranslatable'])) ? $data['enabletranslatable'] : null); Session::set('db', $data['db']); return $this->redirect('dev/build/?BackURL=admin'); } public function endsession() { Session::set('enabletranslatable', null); Session::set('db', null); return $this->redirectBack(); } }