Thank you @TParsons. I have added “:” to my textbox and now the experiment screen is no longer stuck on “initialising the experiment”. However, my movie files are not playing and I am receiving an error.
I have noticed that an html folder was not created on Pavlovia when I uploaded my study could this be the reason?
Hello @sotiri sorry for bothering you again. I managed to make the experiment upload on Pavlovia, and it runs fine except, I am not able to type my answers. I am using the latest PsychoPy version that allows for editable textbox.
Editable textbox works fine locally on my computer but not on Pavlovia.
Hey @serena_zadoorian, no bother at all, sorry to hear some problems remain getting your study to run online, I’ll be on this first thing tomorrow, thanks for your patience
Hey @serena_zadoorian, OK as it happens the TextBox component is non-editable by default. Would it be possible to enable the editable option (just above letter height) as shown below and try again?
This solution worked. It allowed me to type my responses however, 1) whatever I typed for trial 1 stay on the screen for trial 2 and so on and so forth AND 2) the data are not saved in my excel file ( I cannot see the typed responses).
OK that makes sense of course, clear the text box on each trial having stored the data first, I understand, please allow me some time to come up with a fix, thanks
As previously mentioned the TextBox component is a work in progress still. While we iterate to address the issues that prevent the online version of your study from running as expected, I have edited my forked ‘New.js’ to behave like you describe: a new TextBox component is created on each trial, at the end of which the typed in value gets saved in the ‘textbox.text’ column.
I hope that’s something you can use for now, here to help if not and again many thanks for your patience
Hey @sotiri I have the same problem with the text input that remains visible on the next trails.
When I run the experiment offline I can clear the textbox with textbox.text= ‘’ in end of the routine, but I can’t find a solution how to do it online.
Can you help me?
Hey @sotiri, sorry for the late response. I had some trouble getting the task to run online. All this is still in progress and only a part of the final experiment, but the main parts should work now.
Oh my bad… its so simple. I forgot to turn the text component of my textbox to set every repeat. No it works just fine. Sorry for the inconvenience.
But if you have an idea how to check the input of the textbox for a right answer in js let me know. I have tried it with if textbox.text.includes(correctAns))… but that doesn’t work.
With reference to Rechentask.js#L148, one would need to manually set editable: true on the TextBox element for now. Then please use textbox_3._pixi.text instead of textbox_3.text to obtain the actual input and textbox_3._pixi.text = ''; to clear the input at the end of each routine. My forked .psyexp includes those tweaks inside the Coder.
I hope that helps some, please feel free to follow up if not, s.
Hey @sotiri, sorry for bothering you again. Unfortunately I’m still struggling with the textbox element. The moment I insert the textbox in my main experiment, the experiment fails to start. Strangely enough it works fine online, but not offline. Would you help me with this?
You’re absolutely right, just adding TextBox is enough to crash the experiment! Weird OK, I should be able to pick this up again in the morning, thanks for your patience
Hey @naton, I gave this to our PsychoPy developers to take a look at and intend to follow up on it during our team’s stand-up meeting in a short while. I should be able to have an answer for you very soon, s.