from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range, ) author = 'Diya Ganguly' doc = """ These are the instructions for a game in economic decision-making """ class Constants(BaseConstants): name_in_url = 'Instructions_for_economic_decision-making' players_per_group = 2 num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): ReadInst=models.StringField( choices=[['1','Yes'],['2','No']], label='Please click Yes if you have read the instructions',widget=widgets.RadioSelectHorizontal) def ReadInst_error_message(self,value): if value != '1': return 'Please read the instructions before proceeding to the quiz'