Forum Replies Created
-
AuthorPosts
-
Muxuan He
ParticipantHi Jeremy,
Your instructions are super helpful and I kind of know how it should go!
I used these codes:
, newTextInput("MyinputID") .print() , newButton("Start") .print() .wait( getTextInput("MyinputID") .test.text( /^[dD]+\d+/ ) .failure(newText("Please enter your ID in 'D+number' form.") .print()))
It worked! I didn’t expect there was something so specific in the tutorial. I will definitely check the tutorial more before raising questions here. Thank you again for answering my questions.
Best,
MuxuanMuxuan He
ParticipantHi Jeremy,
Thank you for your tips! The second question was perfectly solved.
However, the regular expression under the command test.text() failed to regulate the input in my experiment.I tried what you recommended but no matter what I entered, even Chinese characters, the experiment went on without any warning or pause. I was thinking it might need a confirmation command as well so I also tried .wait() after test.text() but it still didn’t work.
Here is the demonstration link to the pilot experiment.
I would appreciate it if you could give me some more advice!Best,
MuxuanMuxuan He
ParticipantHi Jeremy,
Sorry to reply so late! Thank you for your help so far! I struggled a bit with the password thing.
I have a very specific idea about controlling the input string when participants are required to enter their IDs. I assigned my participants IDs but some of them forgot to do so. I am wondering, besides putting a note below the INPUT box, whether certain codes can help me restrict what participants enter in that box, like in the letter “S” followed by a number (S12).
Also, I have a practice session before the “participant information collection” interface, and usually the participant would end the practice session with a key press “F”, and when they were directed to the “participant information collection” interface, the letter “f” was already there in the box. Some participants were confused so they left the letter there before entering ID and some ignored the input step and used “f” as an ID. I hope to know how I can fix this problem as well.
Thank you for always being there for us!
Best,
MuxuanMuxuan He
ParticipantI think it is because the website is under maintenance! That happens to me too and also they said so when I tried to download the results file.
Muxuan He
ParticipantSorry, the link was not included for some reason. I’ll post it here.
Muxuan He
ParticipantHi Jeremy,
Thank you for your quick response!
It’s a relief to know the duplication is a known bug and it will not occur randomly. I guess it was just me rushing to finish the sentence and keep pressing the space bar longer than I should.
As for the second question, I am happy to share my code and I would appreciate it that you could give me some advice!
The demonstration link is hereThank you so much
MuxuanOctober 23, 2020 at 7:13 am in reply to: DashedSentence or DashedCustom for self-paced reading with cumulative window? #6234Muxuan He
ParticipantHi Gabi,
Did it work? How was the workable script laid out? I am working on the cumulative window as well and would appreciate a glance of your script if possible.
Hope it worked and thank you in advance!
Best,
Muxuan -
AuthorPosts