I am using javascript to transform a text entry form field into a dropdown list and I need to make it multi-select. I know I will need to use Select2 and I have loaded the following into the header: ``` <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> ``` I've read through a lot of the Select2 material, but haven't quite figured it out yet. How would I adapt this code to make the last form field multi-select. ``` Qualtrics.SurveyEngine.addOnReady(function() { /*Creates dropdown lists for form text entry boxes*/ var that=this.questionId; var element="<select id='s1'><option ></option><option value=OPTION1</option><option value='2'>OPTION2</option><option value='3'>OPTION3<option value='4'>OPTION4<option value='5'>OPTION5</select>"; jQu
Is there a way to randomize the answer options in the dropdown list using custom code? In the randomization options within Qualtrics, I am only able to randomize the priority statements.
I have a form question set up with 5 text extry boxes. In the third box, respondents will enter a code in the format 0000-00000-0000... I would like to pull the middle five digits and create an embedded data field. I thought I could use something like this, but I haven't been able to figure out how to apply it to a form question. var str = "${e://Field/ResponseID}"; var res = str.substr(13,18); Qualtrics.SurveyEngine.setEmbeddedData("PatientID", res); How would I use javascript to target the third text entry box and pull the data?
In survey 1, I have an action set up to distrubute a survey when staff enter the contact information of a client. For survey two, the email that clients receive should have an inline email question. I copied the source code of the invite email message from survey 2 into my distribute survey action, but the text that is displayed for the inline question is from survey 1. However, when I click on an answer choice it correctly takes me to survey 2. For the correct text to display, I think I need to change these portions of the code, but I don't know how to find the links or IDs to use from survey 2. Any ideas? ${q://QID1/QuestionText} ${q://QID1/ColumnLabel/0} ${q://QID1/ColumnLabel/1} href="${l://ChoiceLink/QID1/0}" ${q://QID1/ChoiceDescription/0} It should look like this (from Survey 2): ! It currently looks like this (Distribute survey task) !
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.