If you want to use a multiple-short-text in LS 2.05, you will need to use a variation of this workaround -
www.limesurvey.org/en/forum/can-i-do-thi...ious-question#119674
. (2.06 will have sub-question relevance)
1) Insert a multiple-choice after the numeric question
2) Filter the multiple-short-text by the hidden question
3) Add the following script to the source of the numeric question.
Code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Identify the questions
var q1 = $('#question{QID}');
var qHidden = q1.nextAll('.multiple-opt:eq(0)');
// Hide qHidden
qHidden.hide();
// Listeners on the Q1 input
$('input[type="text"]', q1).on('change keyup', function(e, value) {
var q1Value = $(this).val();
// Reset the hidden question
$('input.checkbox', qHidden).prop('checked', false);
$('li.question-item input[type="hidden"]', qHidden).attr('value', '');
// Check the appropriate boxes in qHidden
$('li.question-item:lt('+q1Value+') input.checkbox', qHidden).prop('checked', true);
$('li.question-item:lt('+q1Value+') input[type="hidden"]', qHidden).attr('value', 'Y');
// Loop through subquestions in qHidden and fire the Expression Manager checkconditions() function
$('input.checkbox', qHidden).each(function(i) {
checkconditions(this.value, this.name, this.type);
});
});
});
</script>
Sample survey attached: