Editable textbox still showing through after update

Win10
Ver: 2020.25

Hi everyone, I am still new to psychopy and trying to make an experiment with the editable textbox. Before the updates, the textboxes would show up if I held the mouse key or pressed anywhere on routines, after the update this only happens on the first routine. So I have a survey instructions routine and after that the survey. The instructions routine shows the text boxes but the routines afterwards do not show it. I have attached the code if that helps. Is there a way I can fix the text boxes from showing up in the beginning? Or should I make a new experiment and restart :\

MDS16IMTDMTV1.2.py (35.3 KB)

Hi There,

so that we can see your builder experiment, please share the .psyexp file (the .py file is the compiled python code).

Thanks
Becca

oooh Iā€™m sorry. I hope I attached the proper file. Could you also help me with one more thing? I have been trying to run the experiment online but each time it just get stuck on the initializing screen. The error on the runner says that there was an unexpected syntax ā€œ,ā€ in lines 175 on the js file and 186 on the legacy js file. I try to edit those out but every time it syncs it adds the comma back in.

Thank you!!

MDS16IMTDMTV1.psyexp (115.4 KB)

Iā€™m having a similar issue.

Before updating to 2020.2.5 the textbox worked on every repeat (appeared and accepted text edits on every repeat).
After the update it works on the first repeat (appears and accepts text). But after that it appears but canā€™t be edited.

Has anyone found a solution?

This was a bug that has now been fixed for next release https://github.com/psychopy/psychopy/pull/3257

For now you can try selecting a previous version from the ā€˜Use versionā€™ in builder experiment settings and it should work.

Becca

1 Like

Hi,

I can get the text box to run at all on version (v2020.2.4) either from using the new feature button or by inserting written code.

I watched the utube video by Jason Ozubko, "Getting typed responses in your experimentā€™, to try insert a blank box for typed responses for a ā€˜Free Recallā€™ session in my experiment and inserted the respective code: It was my first time ever writing code

Begin Routine Tab

screen_text = ā€˜ā€™

Each Frame Tab

if("backspace"in key_Resp.keys):
key_Resp.keys.remove(ā€œbackspaceā€)
if(len(key_Resp.keys)>0):
key_Resp.keys.pop()
elif(ā€œspaceā€ in key_Resp.keys):
key_Resp.keys.remove(ā€˜spaceā€™)
Key_Resp.keys.append(ā€™ ')
elif(ā€œreturnā€ in key_Resp.keys):
key_Resp.keys.remove(ā€œremoveā€)
screen_text = ".join(key_Resp.keys)
thisExp.addData(ā€œrecall_respā€,screen_text)
continueRoutine=False
screen_text = ā€˜ā€™.join(key_Resp.keys)

When I ran the experiment, I couldnā€™t get the experiment to advance from the second routine to the third routine. No error message or anything, just a blank screen at the end of the second trial, that I had to end the experiment to get off.

Then I watched the newer utube video "How to get typed responses in PsychoPy, 19th Oct 2020ā€™. So I created a small experiment to trial this feature, with a conditional loop that repeated ten times (Iā€™m aware there is a bug now). As I wanted to change the text that appeared above the typed response textbox each time (Iā€™ve ten questions Iā€™m looking to get typed responses for), I inserted ā€˜$A1ā€™ into the ordinary textbox feature and attached an excel file in the conditional loop (to be a different question). When I ran the experiment, the ā€˜Default Textā€™ appeared on the screen, no sign of the end button either and the experiment ended.

I then went back and removed the excel file, and replaced the $A1 from the document column in the textbox feature and typed in ā€˜This is a testā€™, saved the experiment, exited out, went back in and then tried running it again. Same thing happened, grey screen, ā€˜Default Textā€™, no endbutton to click on and then the experiment ends. I noticed that althogh i sent the time duration to the text, textbox and endbutton (mouse) to infinite duration, the blue line that appears in the routing, was extremely short and not a strip like it usually is, is this something.

So thereā€™s three problems here

  1. Cant get the text inserted into the textbox feature to even appear once, just 'Default Text.
    2.Cant get the mouse endbutton and that text to appear on the screen either
  2. Cant get the text that appears to change with each repeat on a loop. ( Is there a better way than using a column of an attached excel document?).

Hi There,

I am pleased you found the more up-to-date you tube video as I would definitely recommend using the textbox component where possible.

Sounds like you want the start text to be different on each iteration of your loop?

This demo should do what you need. Make sure to run in v 2020.2.4 or 2020.2.3 (click the clock icon > on the ā€˜Use versionā€™ drop down select the version to use).

Download these files and store them in the same directory
conditions.xlsx (8.5 KB) textbox-variable-start-text.psyexp (9.1 KB) .

Becca

Thanks for that! Iā€™m still not sure why my original ones wouldnā€™t work, but that doesnā€™t matter now.