Can I push embedded through a hidden survey question so it can be captured as survey response data? | XM Community
Skip to main content
Solved

Can I push embedded through a hidden survey question so it can be captured as survey response data?

  • January 13, 2022
  • 4 replies
  • 76 views

Forum|alt.badge.img+7

Hello,
I have a survey where I use embedded data for display logic and analysis. I have a need to push embedded data through a survey question so the data is recorded as survey response data...but need the question to be hidden.
I created a text response qustion and used the "Default choices" feature to set up the prepopulation of my embedded data...but I just learned that if the question is hidden using false display logic, the data won't get populated.
Is there a way to hide a question, but still push embedded data through it so it's captured as survey response data?
Thanks,
Leslie

Best answer by ahmedA

You can add this to your question JS:
Qualtrics.SurveyEngine.addOnReady(function () {
    this.questionContainer.style.display = "none";
});

4 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • January 13, 2022

You can add this to your question JS:
Qualtrics.SurveyEngine.addOnReady(function () {
    this.questionContainer.style.display = "none";
});


Forum|alt.badge.img+7
  • Author
  • Level 2 ●●
  • January 18, 2022

Thank you! The script worked for hiding the question but it didn't record the embedded data as a survey response. I'm afraid if a question is hidden or not displayed...it doesn't ingest a 'response'...


Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • January 19, 2022

I'm really sorry, I don't understand what you mean.
please share what you are doing in as much detail as possible.


wpm24
Level 2 ●●
Forum|alt.badge.img+8
  • Level 2 ●●
  • February 3, 2022

Am I understanding correctly that you just want a data point for your embedded data? Or is there more to it?