Hi,
I do not know where you found this script, but in the script a big part is missing
After you define your drop-downs it should be this
Code:
// Listeners
$('.inserted-select', thisQuestion).on('change', function(i) {
if($(this).val() != '') {
$(this).closest('.answer-item').find('input:text').val($('option:selected', this).val()).trigger('change');
}
else {
$(this).closest('.answer-item').find('input:text').val('').trigger('change');
}
});
// Returning to page
$('.with-select input:text', thisQuestion).each(function(i) {
var thisCell = $(this).closest('.answer-item');
var inputText = $.trim($(this).val());
$('select.inserted-select', thisCell).val(inputText);
});
// Clean-up styles
$('select.inserted-select', thisQuestion).css({
'max-width': '100%'
});
$('.with-select input:text', thisQuestion).css({
'position': 'absolute',
'left': '-9999em'
});
});
</script>
Furthermore you have quotes around your "valdation equation"
'{PE2_EDETA.NAOK.max_num}<=40' and '{PE2_EDORE.NAOK.num_range(18,73)}'
You see that it is not recognized as equation (gray color)
See the manual:
[url]
www.limesurvey.org/manual/ExpressionScri...#Syntax_highlighting
[/url]
gray text is just a text.
And you use curly brackets, though the curly brackets already are symbolized to show that in this case they are not necessary
Then you use two properties ".max_num" and ".num_range". Where did you find them?
With the correct syntax (no quotes, no curly brackets) both are shown as error
So there are many mistakes
Joffm
And in my opinion you should revise the question.
Even if you narrow the subquestion label field everything is really noarrow.
Maybe baetter to use several questions of type "multiple text".
Here you also can insert drop-downs, different field widths, etc