Embedded data automatically answering survey response | XM Community
Skip to main content
Solved

Embedded data automatically answering survey response


Forum|alt.badge.img+3

I am updating an existing survey to start passing embedded data from a url to automatically answer a pre-existing question. For example, if the url parameter is ?member=yes, then it would answer the yes/no question “Are you a member?” with a yes response. AND I would also like that if the url answers that question, it would not be displayed. 

 

So far, I have my display logic set so that the “are you a member” question does not appear if the embedded data is present, but do not know how to automatically answer the question with that url parameter. Or, if I can’t automatically answer the question, how to combine the answers from the embedded data to the survey responses.

Best answer by Deepak

You can use Q_PopulateResponse To autofill based of embedded data.
For not displaying the question you can use JS to click next button instead of hiding it.

View original

3 replies

PeeyushBansal
Level 6 ●●●●●●
Forum|alt.badge.img+39
  • Level 6 ●●●●●●
  • 1144 replies
  • February 10, 2025

You can skip question and you can punch your question data in to embedded field and use that field for reporting instead of question.

 

So if Member is NOT EMPTY = you skip question

If member is Empty, punch value of question in to Member field.

 

 


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+44
  • 1549 replies
  • Answer
  • February 10, 2025

You can use Q_PopulateResponse To autofill based of embedded data.
For not displaying the question you can use JS to click next button instead of hiding it.


Forum|alt.badge.img+3
  • Author
  • Level 1 ●
  • 3 replies
  • March 15, 2025

Thank you both! For now I am going to use Q_PopulateResponse and JS, but we might be refining the survey questions and will use the embedded field in the next iteration.