Question
store Filename and UniqueID uploaded file to Embbeded Data Field
In a survey I have an option to upload a file, in my case an image. Normaly I can create Embedded Data Fields to store the filename and URL to the Embedded Data Fields using ie ${q://QID1/UploadedFileName} for Filename and ${q://QID1/UploadedFileLink} for URL. However, this can only be stored to Embedded Data Fields when the Next-button is pressed.
Now I want the selected filename and URL be stored in Embedded Data Fields when I press the Back-button. I know how to store Text from Textfields, like:
Qualtrics.SurveyEngine.addOnPageSubmit(function() {
var answer = jQuery("#"+this.questionId+" .InputText").val();
Qualtrics.SurveyEngine.setEmbeddedData('MyText', answer);
});
The Embedded Data Field called 'MyText' wil contain the text wich is typed into the questions text field. What do I need to change in the jQuerystring (where I read .InputText' to get the text out of the textfield) to get the Filename and URL of an uploaded file?
Thanks in advance.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
