Creating the Survey

Last but not least, we need to specify the order in which the pages are presented, along with some other global settings. For this, we use the survey element:

<survey demographics>
/ pages = [1=demographics1; 2=demographics2]
/ responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0)
/ itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0)
/ itemspacing = 2%
/ showpagenumbers = false
</survey>

We've named our survey "demographics". The pages attribute specifies which pages appear in the survey and in what order. Our survey presents the surveypage called "demographics1" followed by the surveypage called "demographics2".

The responsefontstyle attribute specifies the font to use for response options in the survey. This font applies to the choices in our multple choice items, and the text that the user types in the textbox items.

The itemfontstyle attribute specifies the font used for the captions of our survey questions.

The itemspacing attribute specifies that the space between questions should be 2% of the height of the screen.

The showpagenumbers attribute specifies whether each page should be numbered. Since our survey is only two pages, we'll turn off page numbering by setting this attribute to false.

That's it - our survey is complete. You can run the survey by selecting the "Run" command on Inquisit's "Experiment" menu. Once you've completed the survey, the data will be recorded into a file called "demographics.iqdat". The name based on the name of the survey element. The data file will be located in the same folder as your script file.


Creating Survey Pages Back to Overview