Hi all,I'm working on a survey where I am adding images via Javascript (I cannot add the images manually because there are hundreds of images based on different conditions).I have done the following where I have a block with two separate questions, one blank question with Javascript to display the image, and then below the text of the question.However, when I preview the survey, the image always appears at the very bottom of the page, no matter how I reorder the blocks.Here is the Javascript I've written to display the image:Qualtrics.SurveyEngine.addOnload(function(){ function display_image(src, width, height) { var a = document.createElement("img"); a.src = src; a.width = width; a.height = height; document.body.appendChild(a);} display_image('URL GOES HERE', 770, 385);});Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page is fully displayed*/});Qualtrics.SurveyEngine.addOnUnload(function(){ /*Place your JavaScript her
Hi all, I'm working on survey where based on a respondent's response to a previous question, they should receive a particular image as opposed to another. Now normally I could make branches and upload the images manually, but I have hundreds of branches and so this is quite impractical. I've uploaded the images to my graphics library with a common beginning and the extension that corresponds to the previous question the respondent answered, so my question is basically how I can link the images from my graphics library such that only one image is displayed.For example, suppose there are three options respondents could have earlier picked from: 1, 2, or 3. I'd like to do something like:var option = "${q://QID4/ChoiceGroup/SelectedAnswers/2}";if (option == "1") { }if (option == "2") { }and so on (I can easily write a script to print this text automatically for each option).The big problem is that the images URL is not linked to the name I gave the file. So I can't systematically source th
Hi all, this is related to this question here, but I figure there may be a simpler solution, and this is as good of a separate issue as any.Basically I'd like to place images inside my survey and I'd like those images to be displayed depending on a respondent's answer to a previous question. Your first instinct might be to use embedded data. That works fine for a few images, but not for hundreds like I intend to use.Instead, I've found I can do this using Javascript, however, the issue that I'm running into is that there is no way for me to point the Javascript code to the image without manually copying every single URL, since the Qualtrics generated URL is random and has nothing to do with the characteristic of the respondent I'd like for it to match.I wonder if there's a way to copy the image URLs of every image from a particular folder in the graphics library along with their description to facilitate this. Then I could easily match a respondent's response to the image description a
Hi there! I'm new to the community and happy to be here. I write with what I hope is a reasonable request, let me describe my problem.The survey that I'm building has, early on, a drill-down question that tries to get at a respondent's geographic location. It's not in the U.S., but to give a point of reference you can imagine it like selecting State -> County. (In my case, ~30 "states", and ~1,000 "counties").Now, these ~1,000 counties can be divided into 4 groups (that the respondent knows nothing about) and I'd like to create survey branches based on these groups. To make things a little more intuitive, imagine a simple example where you have counties 1-10 and groups A or B (picture attached below) I'd like to do something like, if you answered 1, 2, 3, 5, or 7 for "county", then create embedded data as "A". If you answered 4, 6, 8, 9, 10 for "county", then create embedded data as "B".This will allow me to branch the survey for the "A" group and "B" group separately, without responde
Already have an account? Login
Enter your 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.