This Open Materials page provides the materials for the Advanced Webinar on Scripting in the Task Builder.
Follow this link to book a place on the webinar.
View a recorded version of the webinar, with an accompanying glossary.
The first part of the webinar introduces basic JavaScript concepts by writing a script live on the online development environment Replit. Follow this link to review a fully commented version of the code demonstrated in the webinar.
If you would like to follow along and run your own script as we go, you will need to create a Replit account in advance. To do this, go to replit.com and click 'Sign Up' in the top right corner. Once you have an account, you can create a JavaScript repl by clicking 'Create' and selecting the Node.js template. Please do this before the webinar, as we will have limited time once the session starts! Note that following along is optional - you are also welcome to just watch and review the materials afterwards.
The Relational Reasoning task below ('Relational Reasoning Task') is the one we will write a script for during the webinar. You may want to clone this task ahead of time so you can follow along with writing the script. If you do not see the 'Clone' button next to the task below, you will first need to log in to your Gorilla account using the 'Login' button at the top right. If you do not have a Gorilla account, create one by clicking Sign Up at the top right of the Gorilla homepage.
Also provided below is a version of the same task with the script that we will write during the webinar ('Relational Reasoning with Script'). You are welcome to clone this version of the task after the webinar to review the script in its entirety.
The main goal of the webinar is to give you the tools to make better use of our Task Builder Scripting examples library. Take a look - most likely you can find a script that does something similar to what you want to achieve!
For more guidance on writing Task Builder scripts, see our Scripting in the Task Builder Walkthrough.
When we debug our script in Chrome, we will be using the Chrome debugging tools - specifically, the console. You may want to consult our debugging guide in advance to find out how to access the debugging tools.
Built with Task Builder 1
A simple Relational Reasoning task containing 7 task trials. During the webinar, we will write a script that randomly selects 3 of these trials from the spreadsheet to show to each participant.
Gorilla Open Materials Attribution-NonCommerical Research-Only
Source: Matrix Reasoning Item Bank (MaRs-IB)
https://app.gorilla.sc/openmaterials/36164
Built with Task Builder 1
The same Relational Reasoning task as above, this time with the script that we will write during the webinar. The script selects 3 random trials from the spreadsheet to show to each participant.
Gorilla Open Materials Attribution-NonCommerical Research-Only
Matrix Reasoning Item Bank (MaRs-IB)
https://app.gorilla.sc/openmaterials/36164
Fully open! Access by URL and searchable from the Open Materials search page