- Posts: 15
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $.post('https://www.domain.de/test/getQuota.php' , { sid: "{SID}", gid: "{GID}", qid:"[here enter the question ID of the keynote question]" },function(data) { $('#question{QID} input[type="text"]').val(data) }); // $('#question{QID}').hide(); }); </script>
{if(('[Q.nb.A1]'-100)>0,"There are "+('[Q.nb.A1]'-100)+" before this answer is quota out","This answer is quota out")}
You can put in the [Q01_speakerA.nb] to have the current people checked Y on Q01_speakerA etc …
case 'nb': switch ($oQuestion->type) { case "5": case "L": case "!": case "O": case "I": case "D": case "N": case "G": case "Y": case "*": case "S": return $this->getCount($this->iSurveyId."X".$oQuestion->gid."X".$oQuestion->qid, $sValue); default: return $this->_logUsage("{$sMatch} : Invalid question type : {$oQuestion->type} in {$this->sDebugWhere}"); }
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // Option 1 if (('[H.nb.H1]') >=0) { $('#javatbd871124X2X11H1').hide(); } // Option 2 if (('[H.nb.H2]') >=1) { $('#javatbd871124X2X11H2').hide(); } // Option 3 if (('[H.nb.H3]') >=2) { $('#javatbd871124X2X11H3').hide(); } }); </script>
Totally right …Joffm wrote: Hi, Denis,
are you sure, this will work?
…
I get the expected message: "Invalid question type..."