Solved: if you want to read the text field, you should enclose the name in parentheses like that ""${e://Field/cat}". The correct version:Question 1 HTML:Qualtrics.SurveyEngine.addOnload(function(){ Qualtrics.SurveyEngine.setEmbeddedData('cat',"dog");});Next question (after the page break to make updates):Qualtrics.SurveyEngine.addOnload(function(){ document.getElementById("cat").innerHTML="${e://Field/cat}";});It displays: dog
I compressed it to a minimal non-working example:Question 1 HTML:Qualtrics.SurveyEngine.addOnload(function(){ Qualtrics.SurveyEngine.setEmbeddedData('cat',"dog");});Next question:Qualtrics.SurveyEngine.addOnload(function(){ document.getElementById("cat").innerHTML=${e://Field/cat};});It displays:
Thanks, though I would need to find a more straightforward solution as I would use the same code to get back to the question.
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.