from otree.api import * doc = """ Beliefs First """ class C(BaseConstants): NAME_IN_URL = 'elicitation1' PLAYERS_PER_GROUP = 2 NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): myguess1 = models.IntegerField( label=''' How many of the 100 participants do you think you will outperform in terms of bargaining?
Please provide a number between 0 and 100. ''', min=0, max=100 ) myconfidence1 = models.IntegerField( label=''' How confident are you in the accuracy of your guesses? Please provide a percentage representing your confidence, between 0 and 100%. ''', min=0, max=100 ) # #mylowerbound1 = models.IntegerField( #label=''' #Considering your initial estimate, what's the minimum number of participants you think you could outperform? #
#This number should be equal to or less than your original prediction. #
#(Check the example below for guidance.*) #''', min=0, max=100 #) #myupperbound1 = models.IntegerField( #label=''' #Considering your initial estimate, what's the maximum number of participants you think you could outperform? #
#This number should be equal to or more than your original prediction. #
#(Check the example below for guidance.*) #''', min=0, max=100 #) mysatisfaction1 = models.IntegerField( label=''' How satisfied do you think you will be with the experiment result?
0 - Not Satisfied At All |------------------------| 100 - Completely Satisfied ''', min=0, max=100 ) # FUNCTIONS # PAGESclass drop(Page): class MyWaitPage(WaitPage): group_by_arrival_time = True title_text = "Please Wait!" body_text = "This might take a few minutes. The next part of the study will begin when you pair with another person randomly." class elicitation1(Page): form_model = 'player' form_fields = ['myguess1', 'myconfidence1', 'mysatisfaction1'] timeout_seconds = 180 page_sequence = [MyWaitPage, elicitation1]