Forms and loops: Can I use the same survey at multiple times with a loop?

I do not know if anybody came up with the same solution so far but it is possible to just re-initialise the form in each iteration. In this case the responses from the last iteration are saved but if you show the form anew none of the responses, neither ratings nor free text is left from the last iteration. You can fix this by putting the following code in a Code :code: component, in the same routine as name_form , in the Begin Routine tab:
name_form = visual.Form(win=win, name='name_form', items='asqr.xlsx', textHeight=0.03, font='Open Sans', randomize=False, style='custom...', fillColor=None, borderColor=None, itemColor='white', responseColor='white', markerColor='red', colorSpace='rgb', size=(1.5, 1), pos=(0, 0), itemPadding=0.1 )
I hope this helps! :slight_smile:

1 Like