Hello,
I keep receiving the following error message when storing and accessing a participant variable:
NameError: name 'Schaden' is not defined
Does anyone have a hint as to why it does not work?
In settings.py:
SESSION_CONFIGS = [
dict(
name="my_survey",
display_name="EXPERIMENT",
num_demo_participants=5,
app_sequence=["Intro", "Test", "Aufgabe", "Preferences", "gneezy_potters", "neg_recip", "survey"],
PARTICIPANT_FIELDS = ['payoff', 'Schaden', 'total',]
)
]
In init.py:
class Preferences(Page):
form_model = 'player'
form_fields = ['Schaden',
'Interaktion']
@staticmethod
def is_displayed(player: Player):
return player.color == 'tmt1'
def before_next_page(player: Player, timeout_happened) :
participant = player.participant
participant.Schaden = Schaden