Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Survey.js in Jatos

Hi everyone!

We build our experiment in OpenSesame and have it running in JATOS. We now want to add a questionnaireto the end of the study. We also want the results to be saved on the JATOS server.

I have created a questionnaire in Survey.js but still struggle with how i can link the survey to JATOS.

Any help is appreciated!

Have a great day! :)

Comments

  • Hi, I once looked into it and couldn't really figure it out either. The trouble with experiment builders is that they generate a minimal HTML file that then reads in text (in JSON format or something like this) and then dynamically create the HTML file that actually runs the study.

    That means that in order to 'jatosify' your study (i.e. add the necessary functions to post data to the server, etc) you would actually need to get into the complicated survey.js file.

    I would suggest you use lab.js as an alternative, because that tool will allow you to export a jatos-ready .jzip (or maybe .zip) file. Or use jsPsych, where the HTML is transparent and therefore editable.

    Hope this helps

    Elisa

  • I tried survey.js once and found it rather easy to use, but of course you need to know your way around JavaScript and JATOS. But if you know, then it's just getting the results from survey.js in the end and send them to JATOS.

    Best

    Kristian

  • Thank you both for the quick answers!

    @kri could you explain a bit more how I and where I need to implement the survey.js results into JATOS? Like do I need to use the JQuery version and add it to my OpenSesame script? Or do I add it it JATOS directly?


    Thanks a lot!

  • Hi,

    We managed to implement the survey locally, but we are still unsure how to import it into JATOS to combine it with the OpenSesame part.

    Do the survey data files need to be in a jzip to be upload? and if yes how would you convert them and add them to the same file?

    Many thanks, looking forward to any input :)

  • The easiest is probably according to your description to put the survey into its own JATOS component.

    I cannot go into details but it's described in JATOS' documentation under "Write your study", especially:

    Start with importing your OSWeb experiment to JATOS (the jzip) and then add a component for your survey and then follow the advice on the pages. You have to move your HTML and JavaScript and all stuff that is needed by it (libraries, CSS, images) into your study assets folder. Btw CogSci also offers professional support: https://professional.cogsci.nl/.

    Best,

    Kristian

Sign In or Register to comment.