Hey!I want to show respondents a Highlight Question they already answered again, but also display them with the selection they made the first time to reconsider them. Is there a way to have a default category selection in a highlight question in Qualtrics? My hunch was to extract the first selection and have a JavaScript to highlight the selection again. My current JavaScript (below) is not working: var questionID = 'QID273'; // Replace 'Option1', 'Option2', etc. with the values of the options you want to select by default var defaultOptions = "${q://QID39/ChoiceGroup/SelectedChoicesForAnswer/1}"; // Get the question element var questionEl = this.getQuestionContainer(); // Loop through each default option defaultOptions.forEach(function(optionValue) { // Find the checkbox corresponding to the default option var defaultOption = questionEl.querySelector('label[for="' + questionID + '_' + optionValue + '"]'); // If the default
Hello!I am currently trying to write a JavaScript with two different validations for a highlight question. The current code I have does not work.Can anyone please tell me what’s wrong?Qualtrics.SurveyEngine.addOnload(function(){ // Get the highlight question container var highlightQuestion = this.getQuestionContainer(); // Add an event listener to the container to detect changes in highlighted categories highlightQuestion.addEventListener('change', function() { validateCategories(); }); // Validation function for both categories function validateCategories() { // Get the number of selected sentences for each category var mis_sentences = highlightQuestion.querySelectorAll('.ChoiceStructure[data-qcid="most important sentence"].Selected'); var smis_sentences = highlightQuestion.querySelectorAll('.ChoiceStructure[data-qcid="second most important sentence"].Selected'); var mis_count = mis_sentences.length; var smi
I am try to integrate Microsfts Azure Translator as a WebService into my survey to translate survey responses in real-time. Unfortunately, the request composition in Azure requires a JSON list, which is not possible inside the webservice of Qualtrics as it does not allow for free text. Is there a way around it? I got it working as a normal Web Service Task inside Qualtrics.
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.