Unable to add text to empty 'Participant' field in initial dialogue box on pavlovia

Thanks! I took a look and I found the problem. In your “Welcome” routine, code component “code_2”, tab “Before Experiment”, there is this bit of JS:

window.addEventListener("keydown", onkeydown);

function onkeydown(keydownEvent) {
  keydownEvent.preventDefault();
}

That prevents the default handling of keydown events (which includes typing in text in the expinfo box). By disabling this code, I could type something in for participant. If the code is required for your experiment, perhaps moving it to the “Begin Experiment” tab would work as well?

2 Likes