Participant ID starting with a 0 in OSweb
Hi everyone,
I am currently in the process of putting some behavioral tasks on OSWeb/JATOS for online testing. I would like participants to input a unique ID number at the beginning of each task, and I found a very useful script on this forum: https://forum.cogsci.nl/discussion/5876/
This works well, but I am running into a strange issue: it does not seem possible to input an ID number starting with a "0". For example, if the ID number is "012345", when I type "1", "0" will disappear and be replaced by "1". However, this does not happen when "0" is not the first number (e.g., 102345). I have tried running the script in Chrome and Firefox so far, the behavior is the same. Any ideas why this is happening?
Thank you in advance!
-Pauline
Comments
Hi Pauline,
The reason for that is Smart variable typing. Basically, every time you enter a digit character, Opensesame converts it to a number. And the string '01' is essentially just 1. I don't know smart ways to fix the code that you linked in your comment to allow for this kind of behaviour, but an obvious solution would be to use 3 digit subject numbers and start at 100.
I hope this clears things up a bit.
Eduard
@eduard Smart variable typing can result in these kinds of things, that's true. But in this case it's a bug in OSWeb that has already been resolved.
@PaulinePamal Could you try updating to OpenSesame 3.3.3, which comes with OSWeb 1.3.8? (You can also update OSWeb separately, but simply getting the latest version of OpenSesame is probably easiest.) That should solve the issue, right?
Check out SigmundAI.eu for our OpenSesame AI assistant!
@eduard Thank you for the explanation! I was not aware of Smart variable typing, but I will keep that in mind when I assign participant number.
@sebastiaan Thank you for the suggestion! I checked for updates within OpenSesame: I am already running the latest version (3.3.3) and the OSWeb version is 1.3.8. Here is my system information, in case it helps:
System
Modules and packages
@PaulinePamal In that case, can you attach your experiment here?
Check out SigmundAI.eu for our OpenSesame AI assistant!