- Posts: 9
- 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() { // Identify the questions var thisQuestion = $('#question{QID}'); var qHidden = thisQuestion.nextAll('.list-radio:eq(0)'); // Hide qHidden qHidden.hide(); // Listener on the Q1 radios $('input.radio', thisQuestion).on('click', function(e) { if($(this).attr('value') < 4) { $('input.radio:eq(0)', qHidden).trigger('click'); } else { $('input.radio:eq(1)', qHidden).trigger('click'); } }); }); </script>
qHidden.hide();
Is this in reference to the solution I just presented? If so, did you test?I am not sure if this issue is caused by the javascript workaround...
<script> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Hide this question $(thisQuestion).hide(); $(function() { $("#question{QID} input.radio[value='{TOKEN:ATTRIBUTE_1}']").click(); }); });
It seems you really didn't get what I meant. Did you test your workaround with more one proband filling out the survey at the same time?tpartner wrote: Well, this post says nothing about tokens and I have no idea what the problem is with your survey or code but I did test my solution and it does work!