kof I had every intention of returning here to provide my solution but forgot! Thank you for reminding me.I had javascript in a question that was written to set the embedded text. However, I had an error in my code that was not setting the embedded text, therefore leaving the end of survey message variables blank. The issue I had with the code is likely due to me being new to Qualtrics and working with javascript. I had created variables a certain way to define the embedded data variable name in the code but it didn't like that at all. I ended up having to hardcode the variable as a full string for the embedded data variable name in the code to work. Example of what it didn't like:var num = "1";var subx = "subcourse"+num;
That was it! It worked!! Thank you so much.Just in case anyone else finds this, this is the correct HTML with reference to selected answer. I did as suggested and got the full piped text path, copied it, then added it to the HTML to replace the incorrect path.This is a test: ${q://QID5/ChoiceGroup/SelectedChoices}
In Q9, the HTML looks like this:This is a test: ${q://QID5/SelectedChoices}The JS looks like this:Qualtrics.SurveyEngine.addOnload(function(){ var subcourse = jQuery("#subcourse");subcourse.text(subcourse.text().substring(0,10));Qualtrics.SurveyEngine.setEmbeddedData("subcourse",subcourse.text());});Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page is fully displayed*/});Qualtrics.SurveyEngine.addOnUnload(function(){ /*Place your JavaScript here to run when the page is unloaded*/});In the code above, I have also tried this with only lines 1 and 2 (omitting line 3 because I don't actually need it in my response data). The result is still blank.Is there something terribly obvious I am missing?
TomG Thank you so much for responding so quickly.I am new to Qualtrics so it is still unclear where the javascript should go (which block and question?) I just attempted what you described but I am still getting a blank result. Could you provide more details about the placement of a script for this purpose? If there is documentation or a tutorial on this topic, I'd be very interested to learn more.Thank you for your time and patience with me!
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.