from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'PostSurvey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): GeneralThoughts = models.LongStringField(label='What do you think of the study and these instructions so far? Was it fun? Was it boring? ') TaskDiff = models.StringField(choices=[['Easy', 'Easy'], ['Neutral', 'Neutral'], ['Difficult', 'Difficult']], label='How difficult was it for you to understand the tasks today?', widget=widgets.RadioSelect) ChoiceDiff = models.StringField(choices=[['Easy', 'Easy'], ['Neutral', 'Neutral'], ['Difficult', 'Difficult']], label='How difficult was it for you to make choices in the study today?', widget=widgets.RadioSelect) q1 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='tends to be quiet.', widget=widgets.RadioSelect) q2 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is compassionate, has a soft heart.', widget=widgets.RadioSelect) q3 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='tends to be disorganized.', widget=widgets.RadioSelect) q4 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='worries a lot.', widget=widgets.RadioSelect) q5 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is fascinated by art, music, or literature.', widget=widgets.RadioSelect) q6 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is dominant, acts as a leader.', widget=widgets.RadioSelect) q7 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is sometimes rude to others.', widget=widgets.RadioSelect) q8 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='has difficulty getting started on tasks.', widget=widgets.RadioSelect) q9 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='tends to feel depressed, blue.', widget=widgets.RadioSelect) q10 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='has little interest in abstract ideas. ', widget=widgets.RadioSelect) q11 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is full of energy.', widget=widgets.RadioSelect) q12 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='assumes the best about people.', widget=widgets.RadioSelect) q13 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is reliable, can always be counted on.', widget=widgets.RadioSelect) q14 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is emotionally stable, not easily upset.', widget=widgets.RadioSelect) q15 = models.IntegerField(choices=[[1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5']], label='is original, comes up with new ideas. ', widget=widgets.RadioSelect) MaritalStatus = models.StringField(choices=[['Single', 'Single'], ['Partnered', 'Partnered'], ['Married', 'Married'], ['Divorced', 'Divorced'], ['Widowed', 'Widowed']], label='What is your marital status? ', widget=widgets.RadioSelect) SexOrientation = models.StringField(choices=[['Heterosexual', 'Heterosexual'], ['Homosexual', 'Homosexual'], ['Bisexual', 'Bisexual'], ['Other', 'Other']], label='What best describes your sexual orientation? ', widget=widgets.RadioSelect) Children = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Do you have children? ', widget=widgets.RadioSelect) Race = models.StringField(choices=[['White or Caucasian', 'White or Caucasian'], ['Black or African American', 'Black or African American'], ['Asian or Asian American', 'Asian or Asian American'], ['Native American', 'Native American'], ['Native Hawaiian or other Pacific Islander', 'Native Hawaiian or other Pacific Islander'], ['Hispanic/Latinx', 'Hispanic/Latinx']], label='What is the primary race/ethnicity with which you identify?') Education = models.IntegerField(choices=[[1, 'Less than high school graduate'], [2, 'High school graduate'], [3, 'Some college/vocational training'], [4, 'Associate’s degree'], [5, 'Bachelor’s degree'], [6, 'Master’s degree/Professional degree'], [7, 'Ph.D.']], label='What is your highest level of education? ') Leadership = models.BooleanField(choices=[[True, 'Yes'], [False, 'No']], label='Have you ever been in a leadership position at work? ') class Understanding(Page): form_model = 'player' form_fields = ['GeneralThoughts', 'TaskDiff', 'ChoiceDiff'] class Demographics(Page): form_model = 'player' form_fields = ['MaritalStatus', 'SexOrientation', 'Children', 'Race', 'Education', 'Leadership'] class Personality(Page): form_model = 'player' form_fields = ['q1', 'q2', 'q3', 'q4', 'q5', 'q6', 'q7', 'q8', 'q9', 'q10', 'q11', 'q12', 'q13', 'q14', 'q15'] page_sequence = [Understanding, Demographics, Personality]