Calculations & Assign Embedded Data Working in Preview Mode but not Distributions? | XM Community
Skip to main content
Question

Calculations & Assign Embedded Data Working in Preview Mode but not Distributions?

  • July 16, 2020
  • 1 reply
  • 33 views

Hi everyone! I have some javascript code that I've written that takes survey question responses, calculates a score, and assigns a segment name as embedded data. It all works fine in preview mode - once survey responses are submitted, I can see that the embedded data segment field is filled out. However, when I tested this with a distribution (emailing myself), the embedded data field doesn't seem to get assigned, and shows up blank in my data. Any ideas why this might be the case? Thanks!

1 reply

YASH1T
QPN Level 2 ●●
Forum|alt.badge.img+6
  • QPN Level 2 ●●
  • July 19, 2020

AnnaH , JS work in both the modes. It might be related to in which event you have placed the code. or some uncaught exception in the code because of unexpected values to the variables..