This help topic
demonstrates how to create a simple demographic survey using the Inquisit Lab development environment. The
survey will include different types of responses, including radio buttons,
sliders, checkboxes, textboxes, list boxes and dropdown elements.
The tutorial will further cover the use of simple hypertext markup language (HTML) to format survey
questions.
Set the font styles for your survey
The survey element also defines the default appearance of the survey elements.
For example, you can define the default font styles and font sizes used
throughout your survey. Note that you can always overwrite these settings in
the individual survey question elements.
To select a specific fontstyle, start typing "/ font" inside the <survey> element, and autocomplete list will appear. Select the "fontStyle" option.
Upon inserting the option, the autocomplete list will display a "Font..." option in the list. Choose this to launch the visual font picker. Choose your font settings and click OK, and Inquisit will
insert the corresponding syntax into your script.
Add the "itemFontStyle" and "responseFontStyle" in the same manner. The "itemFontStyle" attribute specifies how the individual question captions will look.
The "responseFontStyle" specifies how the response options are presented.
Test your script
Test your survey by clicking the "Run" button in the Inquisit Lab toolbar.
You will be prompted to add a subject id, group id, and session number. Use with the defaults.
Inquisit will present your gender question on the screen, which should look like the following:
Click the Finish button without answering the question.
The survey won't let us skip the gender question. By default, all survey questions are required. If no answer is given, the question is printed in red and must be answered to proceed.
To make a question optional, add the command "/ required = false" to the question.
Create the next question using the <dropdown> element.
This question will ask participants' age. We present this question in a dropdown menu and our participants can simply select the appropriate age category.
Our dropdown menu will offer 10 response options that we code under the '/option' attribute. Participants will only be able to select one of these options.
The '/optionvalues' attributes specifies the corresponding codes that will be stored in the data file. For example, if a participant selects the option '18-24 years old', the data file stores the value '3'.
Finally, we add the age question to surveypage "page1"
Finally, we add the age question to surveypage "page1"