Using statements within a string (Qualtrics + JavaScript)

I am trying to use Qualtrics if someone is familiar with the survey program, and I am implementing JavaScript to identify some questions in a specific way.

The problem is that I am trying to connect a line with statements, but it fails, but when I try to use it in another editor, the line operators work fine.

the code:

alert("${q://QID5/SelectedAnswerRecode/1}");

which warns of the meaning

alert("${q://QID5/SelectedAnswerRecode/" + 1 + "}");

this warns an empty text box.

Note: alert ("Hello" + "World"); works great when i use this /

So, if there is someone who knows Qualtrics and knows why he is doing this or some other methods, this will help.

0

Source: https://habr.com/ru/post/1534944/


All Articles