protected function definition_inner($mform)
 {
     parent::definition_inner($mform);
     $mform->addRule('questiontext', null, 'required', null, 'client');
 }