Adding scripts
You can insert scripts into a questionnaire, so that you can create more complex instructions than are possible using the features in the UNICOM Intelligence Author user interface.
You can write script items by using the Interview Scripting Language: see
Interview scripting. Some predefined script items are included in the Library: see
Adding script items from the library.
Example
You can enable respondents to return to a previous question in the questionnaire by selecting the name from a list and clicking a Go To button. To do this, add this script before the first question on which you want the button to appear:
IOM.Navigations.Add(NavigationTypes.nvGoto)
The button then appears on all subsequent pages of the questionnaire.
To insert a script
1 In the Routings pane, select the question after which you want to insert the script, and then click Insert > Routing Item > Script Item, or press Alt+I, R, S.
2 A script item is created with a default name. You can change this if required.
3 (Optional.) In the Description field, you can type a description for the routing item. Descriptions are included when printing draft paper surveys in UNICOM Intelligence Interviewer - Paper. Descriptions are not included in the actual paper survey.
4 Type the script in the field indicated, or paste in the script from another file.
5 Add comments to your scripts to explain what the script does, for future reference. At the start of each comment line, put a single quote:
' Add a navigation button
' to each question
6 To create additional script items, repeat these steps. Each script item is given a unique name.
See also