I manage to do it. Here is an example. Thank you @TomG for the indication. Capture text entry response and store it as embedded data. ```javascript Qualtrics.SurveyEngine.addOnPageSubmit(function() { /* Get current question ID (e.g. 'QID10') */ var qid_01_str = this.questionId; /* console log to check what ID was capture (you can comment this line)*/ console.log('Question is: QR~' + qid_01_str) // Save the current question's response value QR~QID247~TEXT var responseTextField = document.getElementById('QR~' + qid_01_str); var currentResponse = responseTextField.value; /* console log to see what was captured */ console.log('response text entry 1 is: ' + currentResponse_01) /* Assign response to ED */ /* The following line creates (if it doesn't exist) or set (if already exist) an embedded data value */ Qualtrics.SurveyEngine.setEmbeddedData('ed_field_name', currentResponse) }); ```
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.