from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'surveyapp1' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 randomise_question_order = True class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): h1 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who worries a lot.", widget=widgets.RadioSelectHorizontal ) h2 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who gets nervous easily.", widget=widgets.RadioSelectHorizontal ) h3 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who remains calm in tense situations.", widget=widgets.RadioSelectHorizontal ) h4 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is talkative.", widget=widgets.RadioSelectHorizontal ) h5 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is outgoing, sociable.", widget=widgets.RadioSelectHorizontal ) h6 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="When someone does me a favor, I am willing to return it.", widget=widgets.RadioSelectHorizontal ) h7 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="If I am treated very unjustly, I will take revenge at the first occasion, even if there is a cost to do so.", widget=widgets.RadioSelectHorizontal ) h8 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is reserved.", widget=widgets.RadioSelectHorizontal ) h9 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is original, comes up with new ideas.", widget=widgets.RadioSelectHorizontal ) h10 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who values artistic, aesthetic experiences.", widget=widgets.RadioSelectHorizontal ) h11 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I assume that people have only the best intentions.", widget=widgets.RadioSelectHorizontal ) h12 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who has an active imagination.", widget=widgets.RadioSelectHorizontal ) h13 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I am willing to give to good causes without expecting anything in return.", widget=widgets.RadioSelectHorizontal ) h14 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is sometimes rude to others.", widget=widgets.RadioSelectHorizontal ) h15 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to manipulate others to get my way.", widget=widgets.RadioSelectHorizontal ) h16 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I have used deceit or lied to get my way.", widget=widgets.RadioSelectHorizontal ) h17 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who has a forgiving nature.", widget=widgets.RadioSelectHorizontal ) h18 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is considerate and kind to almost anyone.", widget=widgets.RadioSelectHorizontal ) h19 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I have used flattery to get my way.", widget=widgets.RadioSelectHorizontal ) h20 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who does a thorough job.", widget=widgets.RadioSelectHorizontal ) h21 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who tends to be lazy.", widget=widgets.RadioSelectHorizontal ) h22 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to lack remorse.", widget=widgets.RadioSelectHorizontal ) h23 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to exploit others towards my own end.", widget=widgets.RadioSelectHorizontal ) h24 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who does things efficiently.", widget=widgets.RadioSelectHorizontal ) h25 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to not be too concerned with morality or the morality of my actions.", widget=widgets.RadioSelectHorizontal ) h26 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who enjoys working under time pressure.", widget=widgets.RadioSelectHorizontal ) h27 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to be cynical.", widget=widgets.RadioSelectHorizontal ) h28 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is productive under time pressure.", widget=widgets.RadioSelectHorizontal ) h29 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to be callous or insensitive.", widget=widgets.RadioSelectHorizontal ) h30 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is competitive.", widget=widgets.RadioSelectHorizontal ) h31 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to want others to admire me.", widget=widgets.RadioSelectHorizontal ) h32 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I see myself as someone who is willing to take risks.", widget=widgets.RadioSelectHorizontal ) h33 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to seek prestige or status.", widget=widgets.RadioSelectHorizontal ) h34 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to expect special favors from others.", widget=widgets.RadioSelectHorizontal ) h35 = models.StringField( choices=["Strongly Disagree", "Disagree", "Neutral", "Agree", "Strongly Agree"], label="I tend to want others to pay attention to me.", widget=widgets.RadioSelectHorizontal ) # PAGES class MyPage(Page): pass class SurveyQuestion1(Page): form_model = "player" form_fields = ["h1", "h2", "h3", "h4", "h5", "h6", "h7","h8", "h9", "h10", "h11", "h12", "h13", "h14", "h15", "h16","h17", "h18", "h19","h20","h21","h22","h23","h24","h25","h26","h27", "h28","h29","h30","h31","h32","h33","h34","h35"] page_sequence = [MyPage,SurveyQuestion1]