from otree.api import * import requests import settings class PostSurvey(Page): form_model = 'player' form_fields = [ 'trust_digital_tools', 'overwhelmed', 'effectiveness', 'decision_confidence', 'newsvendor_knowledge', 'usefulness_digital_tools', 'informed_decisions', 'ease_of_use', 'understanding_complexity', 'confidence_change', 'future_use', 'decision_making_aspects', 'better_decisions', 'email' ] class RewardPage(Page): form_model = 'player' form_fields = ['email'] def vars_for_template(self): return { 'confirmation_message': f"Thank you! Your email ({self.email}) has been saved. You may exit the window now." } page_sequence = [PostSurvey, RewardPage]