from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'survey' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): q_trust_HC = models.StringField(choices=[['Disagree', 'Disagree'], ['Slightly Disagree', 'Slightly Disagree'], ['Neutral', 'Neutral'], ['Slightly Agree', 'Slightly Agree'], ['Agree', 'Agree']], label='The average person can be trusted to choose in an objective way', widget=widgets.RadioSelectHorizontal) q_trust_AC = models.StringField(choices=[['Disagree', 'Disagree'], ['Slightly Disagree', 'Slightly Disagree'], ['Neutral ', 'Neutral '], ['Slightly Agree', 'Slightly Agree'], ['Agree', 'Agree']], label='Algorithms can be trusted to choose in an objective way', widget=widgets.RadioSelectHorizontal) class Thanks(Page): form_model = 'player' class Survey(Page): form_model = 'player' form_fields = ['q_trust_HC', 'q_trust_AC'] page_sequence = [Thanks, Survey]