I'm attempting to add Javascript to survey items that I've imported from a Simple Format Text File, but Qualtrics doesn't recognize the Javascript when applied to these items. Is there something that I need to enable when importing survey items?
I begin by uploading the item to a new Qualtrics survey.
Here is the survey item:
JS Test.txtI set the Embedded Data at the top of the Survey Flow:
I add the Javascript to that survey item:
Qualtrics.SurveyEngine.addOnload(function()
{
var itemText = "${q://QID2/QuestionText}";
Qualtrics.SurveyEngine.setEmbeddedData( 'TestItem', itemText );
});
I add a new item that should display the JavaScript (Question Text from the item):
But when I preview the survey, the field is blank.
However, if I add the same exact JavaScript to a different item in the same survey that I did not import from a Text file (changing only the QID), it works perfectly.
Can JavaScript not be added to imported survey items?
Not able to add Javascript to Survey Items imported from a Simple Format Text File
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
