from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'exp_intro' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent_to_enter = models.BooleanField( label="Do you agree to participate in this experiment?", choices=((True, "Yes"), (False, "No")), ) prolific_id = models.StringField( label="Please enter your Prolific ID", ) # PAGES class Prolific(Page): form_model = "player" form_fields = ["prolific_id"] class InfoSheet(Page): form_model = "player" form_fields = ["consent_to_enter"] class ThankYou(Page): def is_displayed(self): return not self.consent_to_enter page_sequence = [Prolific, InfoSheet, ThankYou]