Conditioning on Embedded Value | XM Community
Question

Conditioning on Embedded Value

  • 12 September 2019
  • 1 reply
  • 1 view

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

Userlevel 7
Badge +27
Pipe embedded value y into your JavaScript:
```
if("${e://Field/y}" == "1") {
...etc...
```

Leave a Reply