from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'blank_app' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): age = models.IntegerField(blank=True, label='What is your age in years?', min=0) gender = models.StringField(choices=[['Female', 'Female'], ['Male', 'Male'], ['Other', 'Other'], ['Prefer not to say', 'Prefer not to say']], label='What is your gender?') field_of_study = models.StringField(blank=True, label='What is your field of study (e.g. law, music, economics, etc)?') birth_order = models.StringField(choices=[['First or only child', 'First or only child'], ['Second child', 'Second child'], ['Third child or higher', 'Third child or higher'], ['Prefer not to say', 'Prefer not to say']], label='What is your birth order?') zoom_id = models.IntegerField(label='Please input the unique ID number allocated to you over Zoom.') class Survey(Page): form_model = 'player' form_fields = ['age', 'gender', 'field_of_study', 'birth_order'] class Confirm_Survey(Page): form_model = 'player' page_sequence = [Survey, Confirm_Survey]