from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'consent' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent = models.BooleanField( choices=[ [True, 'I agree'], [False, 'I do not agree'] ], widget = widgets.RadioSelect(), label="", ) # PAGES class ConsentPage(Page): form_model = 'player' form_fields = ['consent'] class NoConsent(Page): @staticmethod def is_displayed(player: Player): return player.consent == False page_sequence = [ConsentPage, NoConsent]