from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'intro_choice' PLAYERS_PER_GROUP = 10 NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass def creating_session(subsession: Subsession): for p in subsession.get_players(): p.participant.comp_choice = " " class Group(BaseGroup): pass class Player(BasePlayer): choice3 = models.StringField( choices=['1. Rule 1', '2. Rule 2'], label='I would like to be paid in: ', widget=widgets.RadioSelect, ) # PAGES class MyPage(Page): form_model = 'player' form_fields = ['choice3'] @staticmethod def before_next_page(player: Player, timeout_happened): participant = player.participant participant.comp_choice = player.choice3 class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [MyPage]