A problem of input a number
in OpenSesame
Hi, my experiment is conducted on OSweb. I give each participant a assign subject ID before I sent them the personal experimental link. They are asked to input this number during the experiment. The code I used is shown below:
https://forum.cogsci.nl/uploads/541/U5QKI7CJ7S3D.pngGenerally, it work quite well but with one exception. If the participant do not enter any number and press the "Enter", the experiment still continue and the ID of the participants is not collected.
I wonder if any possible to fix this issue? (e.g., if they do not input any number, then they could not press the “Enter” to continue).
Thanks!
Comments
Hi @tong ,
In OSWeb 1.4, you can simply use the
form_text_inputitem (usingsubject_id_responsefor the response variable). To then validate whether the participant has actually entered something, you can use arepeat_cycleitem, and put both in a sequence, like so:Important note: to run this, you need to update to OSWeb 1.4.2. (In OSWeb 1.4.0 there was a bug with the
repeat_cycleitem.)— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thank you @sebastiaan ! Problem solve!
Hi @sebastiaan. But I encounter another problem. The form_text_input work perfectly in Opensesame, but when I ran it on OSweb, the form_text_input slide is stuck. Whatever my input is not show and even the "ENTER" doesn't work.
Is this another BUG or I miss something important?
Thanks.
Did you upgrade to OSWeb 1.4.2? If so, could you upload your experiment here?
Check out SigmundAI.eu for our OpenSesame AI assistant!
@sebastiaan Yes, it's 14.2. here is the experiment. I remove the experiment loop to make it smaller so I can up load it.
And I think I find this problem is result from "Make the browser fullscreen"
If I click it, then the problem occur. If I not click it, I can input the number in the OSweb.
Thank for you time!
@tong Thanks for pointing this out. This is actually a security features of some browsers (text input not allowed in fullscreen), and currently seems to affect Chrome but not Firefox. I'm not sure how to work around this (or if this is even possible) but I filed an issue for it here.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks. But I try other several browsers and still not work. For now I can use the old way to collect the participant ID.