- Posts: 4
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$token = Yii::app()->getRequest()-getPost('token'); $sid = $this->getEvent()->get('surveyId'); $column = $this->getEvent()->get('surveyId').'X'.$this->getEvent()->get('gid')."X".$this->getEvent()->get('qid'); $oResponse = Reponse::model($sid)->findAll("token = :token",array(":token"=>$token)); $listDate = CHtml::listData($oResponse,$id,$column);// Here you have the array of existing date $script = "//TODO"; // Here you do you javascript Yii::app()->getClientScript()->registerScript('filterDate'.$this->getEvent()->get('qid'),$script);
One option is using a single choice question instead of a date picker. When making use of this plugin you can set a limit of 1 for each option and once that date was selected, the plugin will disable it so others won't be able to pick this option.The client wants old entries in the survey date-picker to be disabled, and as such, prevent multiple entries on the same date.