[solved] closing a form after a specific duration
Hi Opensesame fellows,
Is there a straight forward way to close a form after a fixed duration, if a response has not been entered?
I've had a bit of a search on the site and the forum, but haven't found anything - apologies if I've missed something and this has been dealt with before.
To clarify, participants get 20 seconds to fill in a text box in a form - if they press enter before, the experiment proceeds, but if they haven;t pressed enter after 20 seconds, the experiment proceeds anyway.
I've had a couple of ideas, but they arent working so far.
Any advice very gratefully received.
Best wishes,
Neon

Comments
OK, so moving on, is there a way to use a parallel plugin with an inline script item to close the form? Does this sound reasonable, before I start fiddling with code?
Again, many thanks in advance for any responses.
Neon
I don't know if there's a set way of doing this using forms, but you could always use the following code. It's a DIY text input:
P.S.: This does allow for weird keypresses; if you want to constrict people to using only a certain set of keys (e.g. only vowels), please use the
keylistkeyword argument when the Keyboard object is created, e.g.:Good luck!
Hi Neon,
There is no timeout functionality in forms. Once a user engages with a form, you have to wait until the interaction is finished, i.e. until the user has clicked a button or some other widget that closes the form.
So for now, the only options would be either Edwin's script, or the
text_inputplug-in, which is deprecated, but does offer timeout functionality.Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!