oTree Forum >

saving participants variable with url parameter

#1 by mohamadre3a

Hi, I want to save a couple of participants variables that are passed through the room's url.

For example the url is http://localhost:8000/room/pilot?P_ID=323&P_SES=2334

Reading the document I know that I should define these parameters as participants field in the setting. Something like this:

PARTICIPANT_FIELDS = ['P_ID','P_SES']

But I don't know how I can store them in the data, and cannot find anything in the documentation.

How can I store it in the database?

Thank you,

Write a reply

Set forum username