from otree.api import * author = 'Sara Neff' doc = """ """ BLANK = ' ' class C(BaseConstants): NAME_IN_URL = 'Consent_Form' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent = models.StringField( label='', widget=widgets.RadioSelect, choices=['Yes', 'No']) class Consent(Page): form_model = 'player' form_fields = ['consent'] class End(Page): @staticmethod def is_displayed(player: Player): return player.consent == 'No' page_sequence = [Consent, End]