It was not working for me so I used it slightly modified: ]Qualtrics.SurveyEngine.addOnPageSubmit(function(){ var x = this.getQuestionContainer().querySelectorAll("li"); for (var i = 0; i < x.length; i++) { // Extract the text content of the second child element of the list item var b = x[i].children[1].innerText; // Set embedded data - don't forget to add empty embedded data named rank1,rank2, rank3 etc. Qualtrics.SurveyEngine.setEmbeddedData("rank"+(i+1), b); }});Works for me :)
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.