Support Home Legacy Tools Task Builder 1 Troubleshooting

Task Builder 1 Troubleshooting

  • Overview
  • Task Builder 1 - Worked Examples
  • How do I use spreadsheets?
  • How Do I Change the Font Size/Style/Colour Of My Text?
  • How To Direct Participants To Different Screens Based On Their Response?
  • How Can I Add a Back Button to a Task?
  • How to Allow Participants to Repeat Trials?
  • My Screen Appears to be 'Stuck'
  • Testing Mobile Compatibility
  • Testing Mobile Compatibility
Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

What is the spreadsheet? Why do I need it? How do I set it up correctly?


The spreadsheet is the basis for the task in Gorilla, it drives the task telling Gorilla what should be displayed and in what order. This means that you have to upload a spreadsheet for a task to work on Gorilla, even for the simplest task.

The spreadsheet is a simple table where you put information about one trial per one row.

In Gorilla Task Builder, you create displays (e.g. 'instructions', 'trial' and 'goodbye' displays) that contain screens with specific zones.

You do not need to manually set up each of the trials on separate screen within the task editor - you only build each screen (or set of screens in a display - usually one individual trial) once and then simply list that display multiple times within the spreadsheet to tell Gorilla how many will read and follow when displaying your task.

Worked example:

The example below discusses the Trial Randomisation Math Test example .

If you have 5 maths questions that you want to display to participants on 5 screens and ask them to solve them, instead of creating 5 separate screens and typing your math equations on each of them, you could only use one math equation screen within 'test' display and in your Rich Text Zone specify that you want the equations to be read from the spreadsheet column source called MathsQuestions. This way Gorilla will read from the specified spreadsheet column what images should be displayed on the screens and run as many trials as you specify in your spreadsheet!

For example, in case where you have 5 trials you would need to have 5 rows in your display column called test and 5 rows with maths equations in your MathsQuestions column. See an examplar Task and Spreadsheet set-up below!

I only have two screens in my 'test' display: Screen 1 with a fixation cross and Screen 2 with my math equation typed in the Rich Text Zone with a zone source specified as a MathsQuestions spreadsheet column.

A screenshot of the Text ZOne source in Task Builder 1.

Because I chose spreadsheet as my zone source, Gorilla now decides what will be displayed in Screen 2 from the spreadsheet I uploaded in the Spreadsheet Tab. In this case, it will run all 5 maths quations from the MathsQuestions column in my test display. See the spreadsheet set-up on the image below:

spreadsheet setup example

Using Spreadsheets to run your tasks also gives you lots of flexibility when it comes to randomising your trials, block of trials, storing correct responses etc. In the example above, my 5 math equations will be shown in a random order because I have indicated in the randomise_trials column that I want them to be randomised. Read more about randomisation in spreadsheets.

I have also typed in correct responses into my Answer column. I can later use this as an embedded data to e.g. show participants how many of these equations they have solved correctly. Read more about embedded data in our Embedded Data guide!


Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

How do I change the font size/style/colour of my text?


Firstly, you should make sure that the text you are editing is typed in the Rich Text Zone as opposed to using the Text Zone. The Text Zone is meant for displaying simple unfortmatted text (e.g. single words/phrases/short texts) and, unlike the Rich Text Zone, it cannot be styled using Markdown and HTML formatting styles.

The easiest way to change the font size, style and/or colour of your text is to use HTML formatting applied to each stimuli word/phrase.

If in your task you specify the stimuli through Spreadsheet, you would apply HTML formatting to all the words/phrases within the Spreadsheet and Gorilla will read it from there!


Worked example:

Perpahs you would like to display your math equations in different fonts, sizes and colours. You are sourcing your trials from a spreadsheet column called MathsQuestions. In order to format the text in this column you would need to download your spreadsheet and apply HTML formatting, according to our HTML guide. See an examplar spreadsheet below:

A screenshot of a spreadsheet with HTML formatting.

Then, after saving your edited spreadsheet, you would upload it to your task and gorilla will automatically display the formatted text in your Spreadsheet Tab (see below):

A screenshot of an uploaded spreadsheet with HTML formatting in Task Builder 1.

Bear in mind that you can combine these and have for example bigger text in a desired font and colour simply by making the HTML line a bit longer in your spreadsheet cell!

If you were using a static source for your Rich Text zone, you would need to apply the HTML formatting around the text that you type in the zone.


Adding Script

Alternatively, you can format your text by adding this background and text customisation script to your task, and adapting it to change the font style and size using the HTML guide. See our Task Builder Scripting guide or watch our instructional video on how to add a custom script to your task!


Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

How To Direct Participants To Different Screens Within The Task Based On Their Response?


Wanting to adapt a task so it directs participants to different screens based on their performance/responses is a common requirement in behavioural experiments. In Gorilla, you can do it using our built-in Within Task Branching settings. You will find them in all the Active Response zones - for reference, see the 'Branching Settings' section on the Active Responses Tooling Reference Guide documentation page.


Worked Example:

Have a look at this simple example task . Here, we show participants pictures of animals and ask them whether a presented animal is a mammal. We want to branch participant to a 'Correct' feedback screen if they answer correctly, or to the 'Wrong' feedback screen if they answer incorrectly.

In order to do that, we create four screens in the 'trial' display: 'Response' screen with our question, 'Correct' screen with the positive feedback, 'Wrong' screen with the negative feedback, and a 'Move' screen at the end with a Timelimit (Screen) zone.

We will use the Active Response settings in the 'Response' screen to direct participants to different feedback screens based on their response:

A screenshot of the Active Response settings, with Branching implemented in Task Builder 1.

In the Active Response settings, first tell Gorilla what is the correct answer for a specific trial. In this case, we indicate the ANSWER spreadsheet column as a source of correct answers for our trials. Gorilla will now compare participant's responses with the correct answers listed in the ANSWER column of our Spreadsheet:

A screenshot of the spreadsheet in Task builder 1 which controls the branching in the task.

Now, in the Active Response Branching Settings, we tell Gorilla where to direct participants if they answer correct or incorrect. In this case, if correct, participants will advance to the 'Correct' screen, while if incorrect, they will advance to the 'Wrong' screen in our 'trial' display. Note that, as mentioned in the Branching Settings, the screens we wish to branch participants to must be within the same display - in our case the 'trial' display.

A screenshot of the Branching Settings in the Active Response settings

The last thing to do is to make sure that participants who advanced to the 'Correct' screen won't also see the 'Wrong' screen but instead move onto the next trial. In Gorilla's displays, screens are shown chronologically - so the 'Wrong' screen would normally follow the 'Correct' screen. To prevent that, we 1) add the Go To zone to our 'Correct' screen and 2) add an additional screen at the end of our 'trial' display, here called 'Move', where we add a Timelimit (Screen) zone set to 1ms. (This screen is only used to advance participant to the next trial so it can be as short as 1ms.)

In the 'Correct' screen Go To zone settings, we indicate that we want to go to screen 'Move' after the 'Correct' screen is complete. This way we will skip the 'Wrong' screen for those who answered correctly:

A screenshot of the completed within-task branching set up in Task Builder 1.

And that is our within task branching setup done!


Top Tip: You can use the Branching Settings of the Active Response zones even if your task doesn't include correct/incorrect responses. It is often the case that researchers might want to show participants different screens purely based on their response and regardless of the accuracy. In this case, you can e.g. put in your ANSWER column the response options and still use the correct/incorrect Branching settings to advance participants to different screens.

This video shows you how to branch participants to different screens within a trial depending on their response and use their answer later in the task. This is achieved using advanced branching and embedded data within the Task Builder.

Embedded data Branching Task Builder

Length (mins): 6:03


Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

How Can I Add a Back Button to a Task?


In some cases you might want to allow participants to go back from the current screen they are on to the previous one, for example to give them a chance to review the instructions, see the stimuli again or even change their answer. There is no built-in back button because tasks are designed to progress forwards, not backwards, however, if you want to add this functionality, it can be done and does not require scripting!

Since it's the spreadsheet that runs the task (see this spreadsheet guide for more information on Spreadsheets), we can allow participants to go back to the previous screen by jumping back a row in the spreadsheet. To do that, we would use the Jump to Row zone. The Jump to Row zone needs to be combined with within task branching to avoid an infinite loop - pressing a 'back' button sends the participant to a specific screen, containing the Jump to Row zone. Participants who don't press the button will skip the Jump to Row screen. You can learn more about the within task branching from the video on this page.


Worked Example:

Have a look at this Jump to Row tutorial . In the Task Structure tab, have a look at the screens setup in the display called 'Task'. The Jump to Row zone is positioned on Screen 5. In the screen settings, we indicate that we want participants to jump to the 2nd row in the Spreadsheet when this screen is complete. In the Spreadsheet tab, you will see that row 2 includes the 'TaskInstructions' display. Participants will be automatically directed to the 'TaskInstructions' display after the time limit on jump to row screen (Screen 5 in the 'Task' display) expires.

Now, you would want to direct participants to 'TaskInstructions' display only when they wish to 'go back'. Those who don't, need to be able to skip this. Therefore, we need to create a screen that participants will be directed to in case they do not wish to 'go back' and want to move on. The trick is to use the within task branching settings available for the Active Response zone setting - read more about them in our Tooling Reference Guide.

Have a look at Screen 4 in the 'Task' display. There are two buttons there that participants will click in order to respond. For the purpose of branching, we are setting one of them as a 'correct' and one as an 'incorrect' answer. This is to tell Gorilla which screen should follow when participants choose one button or another. See the images below:

A screenshot of the Task structure with an arrow pointing to the Active Response Branching settings. A screenshot of the screen structure in Task Builder 1 which shows which screens participants will be branched to.

In this case, 'Right' has been indicated as a correct answer. When participant clicks the Right button, they will go to Screen 6 and omit the Jump to Row screen, therefore continue without 'going back' in the task. If they click the Left button, however, they will be directed to Screen 5 i.e. the Jump to Row screen (Screen 5) that will take them back to the 'TaskInstructions' display.

Preview the tutorial task , read the instructions on the screens for more details and try out the 'back button' action in practice!


Warning

You're viewing the support pages for our Legacy Tooling and, as such, the information may be outdated. Now is a great time to check out our new and improved tooling, and make the move to Questionnaire Builder 2 and Task Builder 2! Our updated onboarding workshop (live or on-demand) is a good place to start.

How to Allow Participants to Repeat Trials?


In some cases you might want to allow participants to repeat trials of your task to e.g. read the instructions one more time, see the stimuli again or practice more before they move onto the next part of your experiment.

Since it's the spreadsheet that runs the task (see this spreadsheet guide for more information on Spreadsheets), we can allow participants to repeat the trials by jumping back to the previous row in the spreadsheet. To do that, we would use the Jump to Row zone. The Jump to Row zone needs to be combined with within task branching to avoid an infinite loop - pressing a 'back' button sends the participant to a specific screen, containing the Jump to Row zone. Participants who don't press the button will skip the Jump to Row screen. You can learn more about the within task branching from the video on this page.


Worked Example

Have a look at this Jump to Row example .

After reading instructions and going through PracticeTrial, participants see the Jump display.

On the first JumpQuestion screen, participants are asked whether they would like to go through the practice trials again or to start a main task. Depending on their responses they will be directed to different screens.

Gorilla branches participants to different screens based on correct, incorrect or timeout answers. When there is no 'correct'/'incorrect' answer, like in this JumpQuestion screen, we can set up one of the answers as 'correct' and one as 'incorrect' just for the purpose of branching. Here we say:

A screenshot of the Active Respose settings in Task Builder 1.

Because we can determine one correct answer, only the 'Start Main Task' button will be scored as 'correct'. Any other answer will be scored as 'incorrect' - in our case the 'incorrect' answer will be the other answer we have which is the 'Try Again' button.

Then, in the Branching Settings of the Active Response zone we say 'If correct, advance to screen Continue'. Because we said the 'Start Main Task' button is the 'correct' answer, those participants who choose that button will go to the 'Continue' screen and continue with the task.

We have also set up 'If incorrect, advance to screen TryAgain'. Those participants who click 'Try Again button' (i.e. an answer scored as incorrect) will be directed to the 'TryAgain' screen. See below:

A screenshot of the task structure that allows Jump to Row in Task Builder 1.

Now, in the Jump display, TryAgain screen, we place the Jump to row zone. In the zone settings, we say which spreadsheet row the task should jump into when the screen is complete. To complete (i.e. move), the screen, we need to add Timelimit zone and set the time after which the screen will automatically progress. In this example, the screen will jump to row 2 of the spreadsheet after the Timelimit of 5ms expires. See below:

A screenshot of the display where Jump to Row functionality has been implemented, the Jump to Row settings have been highlighted.

As you will see in the Spreadsheet tab, row 2 of the spreadsheet is a row where Gorilla shows the PracticeTrial display. Therefore, when Gorilla jumps to that row, participants will be directed to the practice display again and this way they will repeat the trials!

A screenshot of the spreadsheet that allows the Jump tot Row functionality to be implemented.

My Screen Appears to be 'Stuck'

This video teaches you 3 ways to get your task moving forward when it appears to be 'stuck' on a screen.

FAQ Task Builder

Length (mins): 5:47


Testing Mobile Compatibility

This video shows you how to use Chrome's browser developer tools to view how your experiment looks on mobiles or tablets.

Browsers Google Chrome Mobiles Tablets

Length (mins): 1:17