> @TomG said: > You can't delete embedded data, but if you don't declare it the survey flow, it won't be saved in the response data. Ohhh, interesting, this seems like part of my solution then! In a previous post, you mentioned that answers are stored with response data once the respondent clicks the Next button. Is it possible to reset question answers with JavaScript after the respondent clicks the Next button, but *before* it's saved? Ideally, I'd like to save the respondent's answer in embedded data (so that it can be piped in at the end of the survey), but also delete the question answer on the page -- something like, set "${q://QID3/ChoiceGroup/SelectedChoices}" to be an empty string or string of random characters. So at the end of the survey, the respondent's answers won't be saved with embedded data (because they weren't declared), nor with the regular response data?
1) Ah yes, I forgot to mention that I have defined the embedded data in the survey flow. 2) I need to display the respondent's selected answer choice later in the survey (in another block), but I don't want it to be actually saved by Qualtrics as part of the final survey response. So I would like to temporarily save some of the respondent's answers in the embedded data for the duration of the survey and then clear it out before the survey is complete. So far, I've tried to save the selected response to embedded data with "${q://QID3/ChoiceGroup/SelectedChoices}" and setting with setEmbeddedData, but it doesn't seem to be getting the values correctly. I'm also wondering how to save and delete embedded data with JavaScript? Thanks so much @TomG!
and `Qualtrics.SurveyEngine.setEmbeddedData('Q3', ans); ` What is the best way to save a text entry or multiple choice response to embedded data and then delete it before the page is submitted?
@TomG Hmmm, still working on this. I'm thinking that maybe my solution would be to save the selected choice for each question in embedded data on each page. Then, delete the response so that it isn't saved -- all of this would be before the next button is clicked. I have a few of the pieces: I think we will need to use `Qualtrics.SurveyEngine.addOnPageSubmit` and I've also been trying to use `var ans="${q://QID3/ChoiceGroup/SelectedChoices}";`
@TomG Ah okay, thanks anyway.
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.