# Creating online studies from Builder¶

PsychoPy can’t export all possible experiments to PsychoJS scripts yet. “Standard” studies using images, text and keyboards will work. Studies with other stimuli, or that use code components, probably won’t.

These are the steps you need to follow to get up and running online:

## Check if your study is fully supported¶

Keep checking the Status of online options to see what is supported. You might want to sign up to the PsychoPy forum and turn on “watching” for the Online Studies category to get updates. That way you’ll know if we update/improve something and you’ll see if other people are having issues.

In your Experiment Settings there is an “Online” tab to control the settings.

Path: When you upload your study to Pavlovia it will expect to find an ‘html’ folder in the root of the repository, so you want to set this up with that in mind. By default the output path will be for a folder called html next to the experiment file. So if that is in the root of the folder you sync online then you’ll be good to go! Usually you would have a folder structure something like this and sync that entire folder with pavlovia.org:

## Export the HTML files¶

Once you’ve checked your settings you can simply go to >File>Export HTML from the Builder view with your experiment open.

That will generate all the necessary files (HTML and JS) that you need for your study

We really don’t recommend this and can only provide limited help if you go this route. If you do want to use your own server:

• You will need some way to save the data. PsychoJS can output to either:

• csv files in ../data (i.e. a folder called data next to the html folder). You’ll need this to have permissions so that the web server can write to it

• a relational database

• You should make sure your server is using https to encrypt the data you collect from your participants, in keeping with GDPR legislation

• You will need to install the server-side script

• You will need to adapt PsychoPy Builder’s output scripts (index.html and the <experimentName>.js) so that the references to lib/ and lib/vendors are pointing to valid library locations (which you will either need to create, or point to original online sources)

This is going to be trickier for now than the PsychoPy/Python scripts. The starting point is that, as in Python, you need to be able to see the error messages (if there are any) being generated. To do this your browser you can hopefully show you the javascript “console” and you can see various logging messages and error messages there. If it doesn’t make any sense to you then you could try sending it to the PsychoPy forum in the Online category.

This is needed

## Recruiting participants¶

Alternatively you may well want to recruit participants using an online service such as Prolific Academic_