Hi Could someone give me some quick help with something pretty basic - I want to implement Select2 on a Qualtrics survey, so that respondents can multi-select from a drop-down, but I'm not quite sure how to set it up. I've added link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css" rel="stylesheet" / script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/js/select2.min.js" /script to my survey header - is that correct? And then in my multi-select question I have this added as JS: Qualtrics.SurveyEngine.addOnReady(function() { $('.js-example-basic-multiple').select2(); }); But that's not doing much other than showing the answer choices in a box, so I must be missing a step. Do I need to add the css script too somehow and somewhere? What is this and how do I do it?
Hi - I have a multi-select question that uses select2: https://select2.org/placeholders But I'm having some trouble doing 3 things: 1) Placeholder. I want to show a default message in the dropdown. I've added `$('select').select2({ placeholder: { id: '-1', // the value of the option text: 'Select an option' } });` into the JS for the question but that's not working. 2) Option groups. I want to have some answer options appearing under multiple bolded category heading, but does optgroup only work in html? How do I add it in JS to a Qualtrics question? 3) Font. By default, the drop down appears in a different font to the rest of the survey text. How do I change this? Am I better off just learning JS...? 😀 thanks Dan
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.