Set embedded data from a text entry | XM Community
Skip to main content

Set embedded data from a text entry

  • January 9, 2020
  • 7 replies
  • 90 views

Forum|alt.badge.img
I have a 28 answer question and the last answer is a text entry. I am trying to get this text entry to become embedded data. I tried Qualtrics.SurveyEngine.setEmbeddedData('SBAEmail',Qualtrics.SurveyEngine.getChoiceAnswerValue(28)) but this is not working. Any ideas?

7 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 9, 2020
It should be something like: this.getChoiceAnswerValue(28) However, I don't think that will give you what you want.

Forum|alt.badge.img
  • Author
  • January 9, 2020
That didnt work either. Is there any syntax with getChoiceAnswerValue or any of the Qualtrics functions I should know about?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 9, 2020
> @maindanger said: > That didnt work either. Is there any syntax with getChoiceAnswerValue or any of the Qualtrics functions I should know about? getTextValue

Forum|alt.badge.img
  • Author
  • January 9, 2020
You said you don't think it will give me what I want. What do you mean by that?

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • January 9, 2020
> @maindanger said: > You said you don't think it will give me what I want. What do you mean by that? That getChoiceAnswerValue wouldn't give you the value of a text entry.

Akdashboard
Level 4 ●●●●
Forum|alt.badge.img+6
  • Level 4 ●●●●
  • January 9, 2020
Are you able to do this in the survey flow with piped text?

Forum|alt.badge.img
  • Author
  • January 9, 2020
Yes I can but for repeatability I wanted to do it in code I can create multiple forms with the same question and not have to add in the flow every time. I can also pipe the text into the email action along with the embedded data field but I think that is too much of a band aid.