FelixHenninger / lab.js

Online research made easy
https://lab.js.org/
Other
244 stars 109 forks source link

Implementing labjs experiment in questback #107

Open milanRV opened 3 years ago

milanRV commented 3 years ago

I made an experiment using labjs. Because my uni uses questback EFS for online surveys, I have to use questback too and implement the labjs experiment there. As described in the labjs documentation for interfacing with third party tools, I embedded the experiment within an iframe. This works, the experiment is running within the questback survey from another URL. Does anybody know the specific code that is needed to submit the labjs data and store it in a questback variable?

milanRV commented 3 years ago

In the meantime I found out how I can do it. In EFS you can define a custom question, where you can insert your own code. With a few lines of code added to what is shown in the labjs documentation, it works for me:

//create hidden input field