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

Conditioning on Embedded Value

  • Sep 12, 2019 3:42 AM UTC
  • 1 reply
  • 19 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 ●●●●●●●●
  • Sep 12, 2019 1:54 PM UTC
Pipe embedded value y into your JavaScript: ``` if("${e://Field/y}" == "1") { ...etc... ```