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.StringField(label="") # PAGES class MyPage(Page): form_model = 'player' form_fields = ['consent'] @staticmethod def error_message(player: Player, values): solution = dict(consent='I CONSENT') if values != solution: error = 'Please try again' return error class ResultsWaitPage(WaitPage): wait_for_all_groups = True class Results(Page): pass page_sequence = [MyPage]