Setup

The first step in setting up the ITB is understand in the different variables which are needed. There are two types of variables – required and optional.

Required Variables

Variable Description
projectId A string which uniquely identifies the project which the ITB will access.
respondentId A string which uniquely identifies the ITB session.
IMPORTANT
Only one of these variables – projectId or respondentId is allowed at a time..
jsFunction Indentifies the JavaScript function that is called when the ITB instance is complete. The jsFunction may be a handle to the JavaScript funtion or the string representation of the name of the function. The jsFunction is passed a single argument, the response XML as a string.
redirectUrl A string which represents a Url which will be called when the ITB instance is complete.
displayMessage A string which will be displayed to the user when the ITB instance is complete. E.g. ‘Thank you for your responses. This completes this exercise.’
IMPORTANT
Only one of these variables – jsFunction, redirectUrl, or displayMessage is allowed at a time.