Professional > Interview scripting > Interview scripting: Getting started > Asking questions
 
Asking questions
The Routing section determines the order in which questions are asked, the way the interview pages will look, and the validation of the answers that the respondent gives.
A Routing section is not required. If there is no Routing section, the questions are delivered in the order in which they appear in the metadata section as they have been so far when you've used F5.
1 We will start by inserting the simplest form of routing, where all of the questions defined in the metadata section are delivered in the order in which they appear in the metadata, so click the Web (Routing) tab.
2 If the Metadata View pane is not visible to the right of the Routing pane, right-click in the Routing pane and select Show Metadata from the pop-up menu.
3 In the Metadata View pane, right-click the Fields folder and choose Copy as Ask.
4 Paste into the Routing section. This will insert routing so that all of the questions defined in the metadata section are delivered in the order in which they appear in the metadata.
Routing(Web)
SurveyTitle.Ask()
Email.Ask()
HowMany.Ask()
HowMuch.Ask()
HowDrink.Ask()
BagOrLoose.Ask()
TeaTime.Ask()
GetNewsletter.Ask()
TeaDrink.Ask()
FavoriteTea.Ask()
WhereProducedLoop.Ask()
Age.Ask()
Gender.Ask()
MaritalStatus.Ask()
Income.Ask()
End Routing
5 The metadata section defines a page called Demographics that presents the Age, Gender, MaritalStatus and Income questions all on one page. We want to display this page rather than the separate pages for these questions, so replace the lines for these questions with a single line containing the text Demographics.Ask().
6 Press F5 to run your script. Answer the questions or just keep pressing F5 to continue to the end of the survey. To stop running the interview before it is complete, click the Stop button .
Requirements
UNICOM Intelligence Professional with Interview Scripting.
Next
Changing the order in which questions are asked
See also
Interview scripting: Getting started