from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Questionnaire' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): Gender = models.StringField(choices=[['0', 'Non-Binary'], ['1', 'Male'], ['2', 'Female']], label='Please, indicate your gender') Age = models.IntegerField(label='Please, indicate your age', min=18) School = models.StringField(choices=[['1', 'School of Economics and Management'], ['2', 'Law School'], ['3', 'School of Social and Behavioral Sciences'], ['4', 'School of Humanities and Digital Sciences'], ['5', 'School of Catholic Theology'], ['6', 'Other']], label='Select your School or Institute') School2 = models.StringField(choices=[['1', 'Bachelor'], ['2', 'Master'], ['3', 'PhD'], ['4', 'Other']], label='What is your current educational level?') Instructions = models.StringField(choices=[['1', '1 (Poorly understood)'], ['2', '2'], ['3', '3'], ['4', '4'], ['5','5 (Well understood)']], label='How well do you feel you understood the instructions for the experiment?', widget=widgets.RadioSelect) Experiment = models.StringField(choices=[['0', 'This is the first'], ['1', '1'], ['2', '2'], ['3', '3'], ['4', '4'], ['5', '5'], ['6', '6'], ['7', '7'], ['8', '8'], ['9', '9'], ['10', '10'], ['11', 'More than 10']], label='How many experiments have you participated in in this lab besides this one?', widget=widgets.RadioSelectHorizontal) Motivation = models.StringField(label='') St0 = models.StringField(blank=True, choices=[['1', '1'], ['2','2'], ['3','3'], ['4','4'], ['5','5'], ['6','6'], ['7','7']], label='', ) St1 = models.StringField(choices=[['1', '1'], ['2','2'], ['3','3'], ['4','4'], ['5','5'], ['6','6'], ['7','7']], label='Women are generally considered to be more competitive than men', widget=widgets.RadioSelect) St2 = models.StringField(choices=[['1', '1'], ['2','2'], ['3','3'], ['4','4'], ['5','5'], ['6','6'], ['7','7']], label='Women are generally considered to be more risk averse than men', widget=widgets.RadioSelect) St3 = models.StringField(choices=[['1', '1'], ['2','2'], ['3','3'], ['4','4'], ['5','5'], ['6','6'], ['7','7']], label='Women are generally considered to be more altruistic than men', widget=widgets.RadioSelect) St4 = models.StringField(choices=[['1', '1'], ['2','2'], ['3','3'], ['4','4'], ['5','5'], ['6','6'], ['7','7']], label='Women are generally considered to be more cooperative than men', widget=widgets.RadioSelect) class Demographic(Page): form_model = 'player' form_fields = ['Gender', 'Age', 'School', 'School2', 'Instructions', 'Experiment', 'Motivation'] class Stereotype(Page): form_model = 'player' form_fields = ['St0', 'St1', 'St2', 'St3', 'St4'] page_sequence = [Demographic, Stereotype]