from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'invitation' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): RSVP = models.BooleanField(blank=False, widget=widgets.CheckboxInput) Name = models.StringField(label="Wat is je naam?") Attends = models.IntegerField( label="Ben je aanwezig op mijn afstudeerfeestje?", widget=widgets.RadioSelect, choices=[[1, 'Ja'], [0, "Nee"]] ) # PAGES class Invitation(Page): pass class RSVP(Page): form_model = 'player' form_fields = ['Name', 'Attends'] class Bedankt(Page): pass page_sequence = [Invitation, RSVP, Bedankt]