- Posts: 6
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { if($('#question{QID} input.text').val() == '') { $('#question{QID}.hide(); } }); </script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { if($('#answer724821X200X1391').length > 0) { $('#question1391').hide(); alert($('#answer724821X200X1391').attr('value')); } }); </script>
if($('#answer724821X200X1391').val() != '') {
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { if(($('#answer724821X200X1391').val() != '') or ($('#answer724821X200X1391').val() != 'Enter your response here.')) { $('#question1391').hide(); //alert($('#answer724821X200X1391').attr('value')); } }); </script>
if($('#answer724821X200X1391').val() != '' && $('#answer724821X200X1391').val() != 'Enter your response here.') {
tpartner wrote: I don't think you want to use relevance because the question should always be relevant, whether pre-populated or not.
Assuming it is a short-text question, try not using the "always hide" option, set up your survey to use JavaScript and add this to the question source:Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function() { if($('#question{QID} input.text').val() == '') { $('#question{QID}.hide(); } }); </script>
Of course, this will also hide the question if a respondent answers it, moves on in the survey and then returns to the group later.