Mandatory written answer
Hi everybody,
I'm Ludovica and I've just subscribed here on the site. I'm a full beginner on Opensesame and, in general, on coding. So, I'm here to ask you some help to solve a problem. Actually, I'm creating an interview using "new_form_text_input" (AI) tool. I would add the following feature: I would like to prevent participants from skipping a question by clicking with the mouse without having given an answer. Could you suggest me a tool and the procedure to apply it or a script that could you help me? As I said I'm not able to write scripts, so a strong help would be so appreciated.
Thank you so much to who will help me! :)
Comments
Hi @LudovicaDeAngelis,
I'm not very familiar with the forms and their handling, but I understand that OS includes a validator to make sure forms are only passed if certain conditions are met. See this thread for details: https://forum.cogsci.nl/discussion/1437/solved-custom-forms-how-to-activate-a-next-button-only-when-a-checkbox-is-chosen. The first solution proposed in the thread is based on the idea of a loop being repeated until a condition is met (which can be implemented involving the "break if" property of the loop), but a second solution is provided that involves a recently added validator within OS.
It relates to the validator described here: https://osdoc.cogsci.nl/3.3/manual/forms/validation/
While it is applied to checkboxes in the examples above, I think it should be applicable to form_text_input too.
Hope this helps!
Fabrice.