from otree.api import * doc = """ This app is used to inform participants the research-related information including purpose, eligibility, and compensation. """ class C(BaseConstants): NAME_IN_URL = 'Consent' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 SURVEY_LENGTH = 10 COMPENSATION = 10 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent = models.StringField( label="Please type 'I agree' below to indicate that you have read the instructions listed above and intend to respond thoughtfully and truthfully") # PAGES class Consent(Page): form_model = 'player' class Instructions(Page): form_model = 'player' form_fields = ['consent'] page_sequence = [Consent, Instructions]