Otree HR-Prolific

586 views
Skip to first unread message

Anubrata Deka

unread,
Feb 12, 2022, 8:10:06 AM2/12/22
to oTree help & discussion
Hello,

I am planning to run my study on Prolific and I am having some issues understanding how to deploy the study.

I decided to opt for Otree Hr.

To deploy my study I first created an oTree zip file and uploaded it to oTree Hub. I used oTree hub to deploy my study on Heroku. Then using the link generated, I created a session that comprised of 20 participants. This then gave me a session code.

In oTree HR I first put in the heroku link and secret code to login. Thereafter, I used the session code generated to create a session on oTree HR. When I choose then to configure the session I get the attached page.

I am little confused here though. When they mention that:

1. add 'prolific_completion_url' to your SESSION_FIELDS

Does the above statement means that in the SESSION_FIELDS on the setting page I need to add this completion code? For instance: SESSION_FIELDS = ['adding completion code'].

2. add 'finished' to your PARTICIPANT_FIELDS setting

Does the above statement means again that in the PARTICIPANT_FIELDS on the setting page I need the write the following: PARTICIPANT_FIELDS = ['finished']

3. In your oTree code, when the participant arrives to the last page, set participant.finished = True (for example in before_next_page)

Finally, is it possible if you could help with this third point? I am not sure how to code this because function such as before_next_page is for player field and not the participant field. How can I do that? Or is there some other function that I can use and is it possible if you could help me with code.

OR instead of doing point three, they say that I can do point 4.

4. On the last page, redirect the user to the prolific completion page:

Click <a href="{{ session.prolific_completion_url }}">here</a> to complete the study.

Does this point imply that in the last HTML page of my study, I directly add this code? and not do point 3?


With Regards

Anubrata Deka.

eka...@umich.edu

unread,
Apr 20, 2022, 1:45:03 PM4/20/22
to oTree help & discussion
Has this question been answered?  There seems to be no way to safely pretest this prior to deploying on Prolific.  

Atiyeh

unread,
Apr 22, 2022, 8:23:17 AM4/22/22
to oTree help & discussion
Reply all
Reply to author
Forward
0 new messages