from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'ControlCheck' players_per_group = None num_rounds = 1 endowment = cu(1) class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): control_question = models.CurrencyField(choices=[[0.3, '0.3'], [0.6, '0.6'], [0.9, '0.9'], [1.2, '1.2'], [1.8, '1.8']], label="To make sure you understand, let's say Participant A gives $0.60 to Participant B, how much does Participant B receive?") class ControlQuestions(Page): form_model = 'player' form_fields = ['control_question'] class Removal(Page): form_model = 'player' @staticmethod def app_after_this_page(player, upcoming_apps): if player.control_question == 1.8: return upcoming_apps[0] else: return upcoming_apps[1] page_sequence = [ControlQuestions, Removal]