- Posts: 14023
- Thank you received: 4281
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
var selectval = $('select.inserted-select option', thisCell).filter(function () { return $(this).html() == inputText; }).val(); $('select.inserted-select', thisCell).val(selectval);
Please Log in to join the conversation.
// Listeners on select elements $('.inserted-select', thisQuestion).on('change', function(i) { if($(this).val() != '') { $(this).closest('.answer-item').find('input:text').val($.trim($('option:selected', this).text())).trigger('keyup'); } else { $(this).closest('.answer-item').find('input:text').val('').trigger('keyup'); } }); // Returning to page $('.with-select input:text', thisQuestion).each(function(i) { var thisCell = $(this).closest('.answer-item'); var inputText = $.trim($(this).val()); var selectval = $('select.inserted-select option', thisCell).filter(function () { return $(this).html() == inputText; }).val(); $('select.inserted-select', thisCell).val(selectval); });
Please Log in to join the conversation.
if(Q1_Y001_X001.NAOK==1,Q1_Y001_X002.NAOK*10, 0)
if(strcmp(strtolower(Q1_Y001_X001.NAOK), "t-shirt")==0, Q1_Y001_X002.NAOK*10, 0)
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.