from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Introduction' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): consent = models.IntegerField() class consent(Page): form_model = 'player' form_fields = ['consent'] class donotconsent(Page): form_model = 'player' @staticmethod def is_displayed(player: Player): return player.consent == 2 page_sequence = [consent,donotconsent]