Thanks for your quick response pogi. I'll need to figure out what ajax is and how to use it, but it's a start.Just to be clear, the ajax and contact [list] api calls are used to do an "internal-to-Qualtrics" api call to the contact list for the drill-down question? I would be forming a live connection between embedded data in the contact list with the possible drill-down categories and responses in the survey using ajax. Am I understanding that correctly? Also, for clarity, the ajax wouldn't mess up the pull and push of embedded data into the contact list via default responses and contact list triggers, respectively. Correct? For example, let's say I plan on filling out information for Student A. I select their cohort, then select student A. After that, I would want to make sure any cumulative information that I need to know about Student A is passed to the appropriate questions. I could still use default responses with embedded data based on cohort/student drill-down select, yes?
Hi, This is one of the nice things about Qualtrics, is that if you can imagine it, between the documentation and the community, you'll most likely find a good solution. So with that being said, here is a potential solution. I would recommend using two surveys, one for pre- and one for post-intervention. In the pre-survey, you would want to create an embedded data field called "group" or "experimental_group" or something that you know what it means with two possible values that indicate your experimental group and your comparison group. (documentation: https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/embedded-data/) You would then create a randomizer in your survey flow that would have the two embedded data values ("experimental" and "comparison") of the one embedded data field ("group"). (documentation: https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/randomizer/) So, you would have an embedded
Thanks, @TomG! Works like a charm.
@TomG, Are you referencing text entry form boxes directly and then just overlaying select2 functionality over the text box or are you actually creating dropdown lists within a form and connecting the dropdown lists via some functions and callbacks? This is the code I have that works in JSFiddle. It utilizes HTML select boxes with dynamic option creation. Here is it in Qualtrics. Again, I'm not sure how to properly reference a text box within a form when I've created code for dropdowns (html "select" boxes). Qualtrics.SurveyEngine.addOnReady(function() { var qid = jQuery("#QR"+this.questionId); var stateVar = qid+"-20-text"; var dioceseVar = qid+"-22-text"; var state_arr = new Array("Alabama",..."Wyoming"); // list of states and some territories var diocese_arr = new Array(); diocese_arr[0] = ""; diocese_arr[1] = "Birmingham|Fairbanks|Mobile"; // Alabama //... more states and territories diocese_arr[53] = "Cheyenne"; // Wyomi
@TomG, I got some JavaScript to work within a JSFiddle boilerplate (minus the dynamic tagging), but how do I get it into Qualtrics and mapped onto the appropriate lines? Would you mind sending me your .qsf file from your example? Thanks again for your help.
@TomG, Thanks. I'm teaching myself javascript and so select2 is both fascinating and overwhelming. You've led me in the right direction. I'll be able to create a solution from your example and exploring the select2 website carefully.
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.