Embedded data | XM Community
Skip to main content
Question

Embedded data

  • July 21, 2022
  • 4 replies
  • 12 views

Forum|alt.badge.img+3

Hello,
I would like to create embedded data for my survey questions. Ultimately, I would like to create an API that accepts the data from Qualtrics.

I have a rank question that has 4 options. Is there a way to use logic for those responses? Something like...If="1" then [priority_one]

The SQL fields are priority_one, priority_two etc.

Thank you for your help!

4 replies

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • July 21, 2022

We can save the response which was ranked 1dt, 2nd so on in flow or via JS. And then that could be added via API to directory.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • July 21, 2022

CLM ,
This function that saves ranks to embedded variables may be of interest.


Forum|alt.badge.img+3
  • Author
  • Level 1 ●
  • July 22, 2022

How would I save the responses in flow?


grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • July 22, 2022

You will need to write a JS to get the rank values in and then set it using "setEmbeddedData" function.
First call this function in onPageSubmit and then set the values. For setting the values just get the text version of the first text. For example:
jQuery('ul li').eq(0).text()