Items parameter in the form cannot accept the variables

I created an experiment with three similar experiments, and to achieve this, I made a large loop to control the change of content in the experiment by passing parameters. The structure of my experiment is shown below.




However, the form component does not seem to get the parameters in the loop file. I got the following tips:
items=form_pretest,
NameError: name ‘form_pretest’ is not defined

Sorry, but you will need to take a different approach.

Sorry, I don’t know much about Psychopy. Does it mean that I can create multiple forms, and create a new parameter to control which form to display in tirals?

Correct. You can start each form component with a condition instead of a time.

Thank you for being so helpful, but I still have a few questions. I have no idea how to control the presentation of forms, so I tried using form.setautodraw (), but failed. I would appreciate it if you could give me some advice.

Don’t use code to control which form is presented.

Click on the fo component. Look at the start time. Change it to a start condition.

Oh, my God! I never knew that was possible! Thank you very much for your help. Now my form can be displayed as expected.