[solved] Disable 'enter' and log subject's demographic details
Hi,
I am wondering if there is a way to disable 'enter' in form input element. I want participants to write as many words as they want separated by commas. When they are finished they should move to the 'next' tab. Right now, if participants want to move to 'next' tab, they press enter and cursor appears which enable them to move to 'next' tab. But if they mistakenly press 'enter' instead of comma (which many of them do), there is no way that they can resume writing the words. Here is my form input script
[pastebin:1pTzR7r5]
Additionally, I am looking for a way to log participant's demographic details (like age, gender etc) at the start of the experiment and make it a part of log file (just as it is done in PsychoPy and EPrime). Is it possible?
Thanks in advance,
Asma
Comments
Hi Asma,
Your script is a bit odd. Firstly, the question
labelspans two rows and therefore overlaps with thetext_inputon the second row. Also, what I assume should be abuttonis atext_inputwith the text 'Next' in it. Probably, you want to have a script like the following, am I right?I think that this is related to the fact that the
labeloverlapped thetext_inputin your script. This prevented you from clicking on thetext_inputto resume typing. Does the script I posted above fix your problem?Yes, if you use forms to collect information at the beginning of the experiment, the info should be automatically written to the log file. Make sure to choose unique response variables, otherwise the info will be overwritten!
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks Sebastiaan!
It was indeed a problem with row span. It works perfect now.