from otree.api import * doc = """ Your app description """ class C(BaseConstants): NAME_IN_URL = 'nps' PLAYERS_PER_GROUP = None NUM_ROUNDS = 2 TEXT1 = ['See','Becher','Fleisch','Pfeife','Fußball'] TEXT2 = ['Fluß','Eisenbahn'] class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): inputs = models.LongStringField() # PAGES class MyPage(Page): pass class ReadWaitPage(WaitPage): pass class ReadPage(Page): @staticmethod def js_vars(player: Player): return dict( text = '\n'.join(C.TEXT1) ) class AnswerRead(Page): form_model = 'player' form_fields = ['inputs'] @staticmethod def before_next_page(player: Player, timeout_happened): print(player.inputs.split('\n')) class ResultsWaitPage(WaitPage): pass class Results(Page): pass page_sequence = [ReadWaitPage,ReadPage,AnswerRead]