from otree.api import * doc = """ Attention Check 1 """ class Constants(BaseConstants): name_in_url = 'ATT1' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass def make_q(label): return models.IntegerField(label=label, choices=[1, 2, 3, 4, 5], blank=True, widget=widgets.RadioSelect) class Player(BasePlayer): attention = make_q('Q1') # PAGES class ATT1(Page): form_model = 'player' form_fields = ['attention'] page_sequence = [ATT1]