Conditioning on Embedded Value | XM Community
Skip to main content
Question

Conditioning on Embedded Value

  • September 12, 2019
  • 1 reply
  • 10 views

Hello! I am trying to insert code into the JS for a question. The basic idea is to ask Qualtrics to update the value of an embedded value, x, if the value of another embedded value, y, is 1 and to do nothing otherwise. How can I accomplish this?

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 12, 2019
Pipe embedded value y into your JavaScript: ``` if("${e://Field/y}" == "1") { ...etc... ```