from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'consent' PLAYERS_PER_GROUP = 1 # used to be "None" NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): accept_consent = models.BooleanField( label='I have read the information above and I voluntarily agree to participate in this study.', blank=False, widget=widgets.CheckboxInput(), ) # PAGES class Consent(Page): form_model = 'player' form_fields = ['accept_consent'] page_sequence = [Consent]