Support Home Task Builder 2 Tutorials Tutorial: Show Recent Answer

Tutorial: Show Recent Answer

Overview

This tutorial demonstrates how to show participants their most recent answer in every trial. In order to do that, we need to save participant's response to the Store so that we can later display it. Firstly, in the Response field of our response objects, we name the responses participants can give: for the ANIMAL object we type 'animal' and for the PLANT object we type 'plant'. It will be the 'animal' or the 'plant' that we display to participants as their recent answer, depending on participants' response.

Now, to save participant's response to the Store, we add a Save Response component to the Screen object in the SCREEN tab. We give a name to the Field where we save our response in the Store, so that we can subsequently retrieve the response. In this case, we want to show participant's most recent response on the next Screen, therefore, on the next Screen, we add a Markdown Text component and use syntax ${store:field-name} to retrieve participant's answer saved in the Store. In this tutorial, we use ${store:recentResponse} because that's the name we have given to the Field where we saved the response in the Store. You can read more about this step in our Store Guide. As a result, when running the task, the response given will be saved to the Store and displayed on the next screen to show participants their most recent answer.

Open in Gorilla