- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$surveyId = $this->getEvent()->get('surveyId'); $responseId = $this->getEvent()->get('responseId'); if(!$this->YourFunctionCall()) { Response::model($surveyId)->updateByPk($responseId,array('submitdate' => null)); $message = "Your survey canb not be finally submitted". $message .= CHtml::link("Retry",array("survey/index", "sid" => $surveyId )); \renderMessage\messageHelper::renderAlert($message,'warning'); App()->end(); }