I would like to set a dummy variable if someone gave the wrong answer in a grid question. For example, question 7 in a grid question says: "Please click on 7", but respondents click on 6.
Now I would like to set a hidden variable, whether respondents pay attention to the question or not. Furthermore, I would like to use a skip logic based on this dummy variable.
I created a hidden variable of the type "whole number" and try to use this script:
<input type="hidden" name="AttentionCheck1_Dummy" id="AttentionCheck1_Dummy" value="[% Begin Unverified Perl
if (GETVALUE('ItemsIdentity_r7') != 7)
End Unverified %]"/>
Unfortunately, the hidden variable is always set to 1, irrespective of the answer. What am I doing wrong?