from otree.api import * doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'end' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): byuid = models.IntegerField(label="") background1 = models.IntegerField( # Background Question 1 label='What is your gender?', choices=[ [1, 'Male'], [2, 'Female'], [3, 'Other'], [4, 'Prefer not to answer'] ], widget=widgets.RadioSelect() ) background2 = models.IntegerField( # Background Question 2 label='What is your age in years?', ) background3 = models.IntegerField( # Background Question 3 label='What is your highest level of education?', choices=[ [1, 'No high school degree or equivalent'], [2, 'High school degree or equivalent'], [3, 'Some college'], [4, 'College degree'], [5, 'Graduate degree'] ], widget=widgets.RadioSelect() ) # PAGES class back(Page): form_model = 'player' form_fields = ['background1', 'background2', 'background3'] class byuid(Page): form_model = 'player' form_fields = ['byuid'] class thanks(Page): pass page_sequence = [back, byuid, thanks]