Hi @emilyvoc , here's the Java Script I added to my open-end question: Qualtrics.SurveyEngine.addOnReady(function() { var questionID = this.questionId; var textbox =$('QR~' + questionID); var that = this; function countWords(s){ s = s.replace(/\\n/g,' '); // newlines to space s = s.replace(/(^\\s*)|(\\s*$)/gi,''); // remove spaces from start + end s = s.replace(/[ ]{2,}/gi,' '); // 2 or more spaces to 1 if(s == ''){ return 0; }else{ return s.split(' ').length; } } textbox.onkeyup = function(e){ var aa = countWords(textbox.value); console.log(textbox.value); Qualtrics.SurveyEngine.setEmbeddedData("ED1", aa); } }); From what I understand, as I'm new to this, is you need to update the last part of the script . "aa" needs to unique to each open-end question as well as "ED1" which is the name of your new embedded data in your dataset. Once this is d
> @LaurenK said: > Hi @VinceLef! You'll want to reach out to our Support team so they can take a closer look into this with you! Hi @LaurenK. I did reach out to the support team. I just wanted to check on the community if someone had a quick answer for me. Thanks for the quick reply !
I added a sentiment analysis block in my survey flow but it doesnt show any question to choose from. Am I doing something wrong ?!
@TomG - I'm new at JavaScript. Would you mind sharing the script to use for word counting in a text entry field and store this info as embedded data ? Thanks a lot !
Hi @ambrubaker, Is there a way to modify your JavaScript to count the words in a text entry field and simply store the information in an embedded data variable ? I do not wish to display the info, simply count the words and store the info for subsequent analysis. Thanks for your help !
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.