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

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

  • Jul 16, 2020 8:03 PM UTC
  • 1 reply
  • 59 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+11
  • QPN Level 2 ●●
  • Jul 19, 2020 12:52 PM UTC

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..