When using a free format combobox variable, the Sawtooth JavaScript and database only expect a single response. To store multiple responses, you'll need to use multiple variables or a variable capable of storing multiple responses. I would recommend using the free format checkbox variable. You will then need to use some JavaScript to send info between the combobox and checkboxes. Here's an example:
<div id="[% QuestionName() %]_checks">
[% CheckSelect(FF1_COLOR, 1) %]
[% CheckSelect(FF1_COLOR, 2) %]
[% CheckSelect(FF1_COLOR, 3) %]
</div>
<select multiple id="[% QuestionName() %]_combo">
<option selected value="">Choose all that apply</option>
<option value="1">Red</option>
<option value="2">Green</option>
<option value="3">Blue</option>
</select>
<style>
#[% QuestionName() %]_checks {
display: none;
}
</style>
<script>
$(document).ready(function(){
$('#[% QuestionName() %]_combo').change(function(){
var selected = $('#[% QuestionName() %]_combo').val();
for (var i = 1; i <= 3; i++) {
if (selected.indexOf(i.toString()) != -1) {
SSI_SetSelect('[% QuestionName() %]_COLOR_' + i, true);
}
else {
SSI_SetSelect('[% QuestionName() %]_COLOR_' + i, false);
}
}
});
})
</script>
The "3" in line 24 should be updated with the number of items in the combobox.