
Solved
Exact match in embedded data
I have a list of unique codes set as embedded data, and I would need to verify whether the answer to the first question matches any code in this list. It seems qualtrics does not do "exact match". That is, suppose the embedded data is called "codeList", and i set it to = ABA2, ABC3, then when I enter "A" in the first question, it is considered a "match" because A is part of the list. How to make qualtrics to do exact match? !

Best answer by fleb
Hi @yzhang6,
where exactly is your Javascript? I supposed that it isn't at QID1 or in the same block since you had code defined as an embedded field in your original example. If so, would it be possible to move the code to a question from another block or you need to evaluate the code right at the beginning?
If this is not the case, try to alert variables one by one (e.g.: add `alert(code)` below `var code = "${q://QID1/ChoiceTextEntryValue}";`). This will show you where exactly is the problem.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

if I define the codeList and included after the default block, the returned value for "included" is always true (I get this by downloading the data).
Would you be able to tell me what I am doing wrong? Much appreciated!