- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
{sum(if(Q1_100=="Y",100,0),if(Q1_50=="Y",50,0))}
{if(Qscore > 49, "1", "2")}
{if( sum(if(Q1_100=="Y",100,0),if(Q1_50=="Y",50,0)) > 49, "1", "2")}
socrates wrote: To screen out I would have in Q2 code 1 or 2 be set as "Yes", so I could set a 0 quota.
However, if I follow your recommendation I get in Q2 as question text 1 or 2, but obviously that won't help me to screen out.!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var qCondition = '{Q2}'; if( qCondition == 1) { $('body').hide(); window.location = "https://example.org"; }; }); </script>
.... if ( ( qCondition == 1) || ( qCondition == 2) ) { ....