Embedded data | Experience Community
Skip to main content
Question

Embedded data

  • Jul 21, 2022 2:19 PM UTC
  • 4 replies
  • 38 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+18
  • QPN Level 3 ●●●
  • Jul 21, 2022 7:14 PM UTC

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 ●●●●●●●●
  • Jul 21, 2022 9:05 PM UTC

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


Forum|alt.badge.img+3
  • Author
  • Level 1 ●
  • Jul 22, 2022 6:28 PM UTC

How would I save the responses in flow?


grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+18
  • QPN Level 3 ●●●
  • Jul 22, 2022 7:23 PM UTC

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()