I am programming a javascript choice task in Limesurvey and I want to save the choices and reaction times. I thought an text array with rows for the different choices (Choice1, Choice2, etc.) and columns for choice (left/right) and reactiontime would be most suitable.
To fill the array with data I used the following line, which makes use of the SGQA:
document.getElementById("answer429791X27X68Choice1_choice").value = "My value";
I was wondering whether it would also be possible to use the question id instead of the SGQA code? I haven't been able to get it working with the questioncode, i.e., the following line does not work (questioncode is testvullenarray:
document.getElementById("testvullenarray_Choice1_choice").value = "My value";
I have been searching around on the forum and google but haven't seen someone trying to do the same. Does anyone know whether this is possible?
Thanks that worked!
I'm indeed using some of the methods of the IAT workaround. (i.e., a flexi array question that is populated with response times and choices from the javascript task).