I created a survey where participants answer the same question block multiple times. In between each answer, I store the participant’s responses in some embedded data variables, change some parameters, and then display the same question block again.However, after the first time participants answer the block, their responses remain selected on the questions for the next time I display the block. How can I reset these using JavaScript?Here’s what I tried:Qualtrics.SurveyEngine.addOnload(function() { // Function to reset choices for a given question function resetChoices(questionID) { var choices = jQuery('#' + questionID + ' .q-radio, #' + questionID + ' .q-checkbox'); choices.each(function() { jQuery(this).prop('checked', false); }); } // Reset choices for the specified questions resetChoices('QID632'); resetChoices('QID631');});I’m not sure why this code isn’t properly resetting the multiple choice question. I have a page break between
! Hello. I need to have a multiple choice scale with around 29 options, and I want the options on each edge to be unavailable. At the moment, I am planning to use custom content validation and imagery in the in the options to indicate this - but what I really need is for the circle where people select the option to be greyed out or invisible - to make it super clear to survey takers that they are not meant to and cannot select it, even before the validation tells them. Is there a good way of doing this? Any javascript maybe I can use to make the selection invisible, while keeping the option label above the circle visible? In the attached image, I would want to keep all the numbers above the options, but just grey out or make invisible the selection circles below the option labels. thanks so much to anybody who tries to help! Josh
I am working on the survey that you can preview here: https://wharton.ca1.qualtrics.com/jfe/preview/SV_ekAwRhlPI3HGfNH?Q_SurveyVersionID=current&Q_CHL=preview I am trying to save the text entry responses to embedded data. I have named the fields earlier (est1 and est2) in the survey flow so Javascript recognizes and fills them, and am using this function: Qualtrics.SurveyEngine.setEmbeddedData('est1', "?") But basically, I don't know what to put as the question mark, or how to create a variable that I can refer to instead of that question mark. I have been searching for many hours online but i expect my question is too basic for anyone even to have had to ask it before... any help would be very appreciated. Josh
Hello! I have the following code for copying selected multiple choice text to an embedded data field "choice1": `Qualtrics.SurveyEngine.addOnload(function() { var currentQuestionID = this.getQuestionInfo().QuestionID console.log("Current Question ID is: " + currentQuestionID) var resultEmbeddedName = "result_" + currentQuestionID.substring(3) //e.g. result_6 $('NextButton').onclick = function (event) { var questionObject = Qualtrics.SurveyEngine.getInstance(currentQuestionID) var currentResponse = questionObject.getSelectedChoices()[0] //in case more than one is selected, it will only work here to take one! var theQuestionInfo=questionObject.getQuestionInfo() var choicesObject=theQuestionInfo.Choices var thisChoiceObject=choicesObject[currentResponse] var currentChoiceText=thisChoiceObject.Text console.log("Number of the current choice is " + currentResponse) console.log("Text of the current c
Hello! I had some JavaScript which used to work for hiding the next button until a survey taker had typed "a" then "b" 100 times - but within the last few weeks the code appears to have stopped working. I attach the code as a text file. In addition, here is a link to the survey with the relevant question in: login.qualtrics.com/jfe/preview/SV_d4MYJ8FTOzV44qV?Q_SurveyVersionID=current&Q_CHL=preview If you skip to the fifth page of the survey, then you will see the page where you have to type "ab" 100 times - but at the moment, the next button is showing from the start. In case it helps, to get this javascript code actually count up the amount of "ab"s that are typed, I added an authenticator to the end of the survey, and some embedded datafields at the beginning. ! ! Finally, assuming we can get the code working again, I wondered if it would be possible to set the number of "ab"s required to get the next button to show set by an embedded datafield. At the moment, I haven't bee
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.