oTree Forum >

How to set the number of participants accordingly corresponding to the actual number when creating sessions in Heroku?

#1 by HJmonica

Hi friend,

I am having a 5-app experiment. For each treatment I have an app. For example I may have 16 or 18 participants for app 1. When creating sessions in Heroku, I will set the number of participants accordingly. In the instruction page, I want to tell the participants how many people are in this session according to the fact (16 or 18). How can I do it? Thanks!

#2 by ccrabbe

Hi HJmonica -


According to the documentation, the Session model has a field called num_participants, so you can access this in your templates with {{ session.num_participants }}


Write a reply

Set forum username