Textbox displays previous response

OS (e.g. Win10): Mac 12.2.1
PsychoPy version (e.g. 1.84.x): 2022.2.4
Standard Standalone? (y/n) If not then what?: yes

I want to record responses using a textbox, but the last button response from the previous routine is recorded in the text box, despite not pressing a button during the trial that contained the textbox.

Previous posts suggested I set the textbox to editable and “set every repeat”, add textbox.text = "" to the Begin Routine tab of a code component, or change the order of the components within the routine, but these suggestions did not fix the issue. Pictures are attached below in case they help.

Any suggestions are appreciated!


In case it helps, I added a routine with a text component set for 100 ms before the routine that contained the textbox component and that seemed to resolve the issue.

If anyone has a better solution, let me know!


did you try moving the code-component up. before the text-box?

Best wishes Jens


I appreciate the response! I did try this, as it has worked with similar issues, but it was unsuccessful at fixing the issue.