Must Click any valid answer object before Clicking next to move onto the next trial: video clip as stimuli

Hello,

I`m looking for help regarding my experiment.

Objective: I created a experiment which assignes participants randomly in two different groups. Each group get two different tasks with a possibility to answer by clicking on a „button“. I worked with images to save reaction time and clicked object.

Unfortunatly PsychoPy doesn´t saves the reaction time and the name of the clicked object since I put the code for the randomization in.

I used the code for randomization from this url: Assigning participants randomly to a condition

I tried:

To use the proposed code above

To change the position of the code for randomization

Maybe somebody has suggestion of what I can try next?

Thank you in advance!