from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'InformedConsent' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gave_consent = models.BooleanField( choices=[[True, 'Yes, I would like to participate in this study. I have read the preceding information carefully ' 'and consent.'], [False, 'No, I do not want to participate. (This ends the study without any renumeration.)'],], widget=widgets.RadioSelect(), initial=None,) why_no_consent = models.StringField(blank=True) mTurk_id = models.StringField(blank=True, initial=None) # used to create two submit buttons that lead to different site (end study and proceed to study) proceed_to_study = models.BooleanField() screen_width_hidden = models.StringField(blank=True) screen_height_hidden = models.StringField(blank=True)