from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Welcome' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): ready = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Are you ready to continue?') def my_function(player: Player): pass def custom_export(players): yield ['participant_code', 'id_in_group'] for p in players: pp = p.participant yield [pp.code, p.id_in_group] class Welcome(Page): form_model = 'player' class Instructions1(Page): form_model = 'player' class Template(Page): form_model = 'player' class Ready(Page): form_model = 'player' form_fields = ['ready'] page_sequence = [Welcome, Instructions1, Template, Ready]